4 Replies Latest reply on Dec 12, 2008 8:18 AM by ramki dirisala

    <rich:scrollableDataTable/> width and height in %

    ramki dirisala Novice

      hi,
      is it possible to set scrollable data table height and width in %. i tried setting width and height in %, but only width is coming properly with below code.

      <rich:scrollableDataTable value="#{demo.sourceList1}" var="item" width="30%" height="120px">

      <rich:column>
      <f:facet name="header">column1</f:facet>
      <h:outputText value="#{item.codeValue}"></h:outputText>
      </rich:column>

      </rich:scrollableDataTable>

      if i set both width and height in %,table itself is not displaying.

      <rich:scrollableDataTable value="#{demo.sourceList1}" var="item" width="30%" height="30%">

      <rich:column>
      <f:facet name="header">column1</f:facet>
      <h:outputText value="#{item.codeValue}"></h:outputText>
      </rich:column>

      can anyone please help me. i am using richfaces 3.2.2.

      </rich:scrollableDataTable>