3 Replies Latest reply on Jan 28, 2009 6:19 AM by ilya_shaikovsky

    ExtendedDatatable size..

    smutzski

      Is it possible that your extendedDatatable just has the size of how many records there are? Datatable had, but ExtendedDatatable has 1 default size... i do need to set the size when i don't want all is showed.

      Or is it possible to use % to make the size? If so... how can i do that? Cause when i fill in width="30%" or something, it's not working..

      THNX! :)

        • 1. Re: ExtendedDatatable size..
          ilya_shaikovsky

          you mean table sizes or columns sizes? horizntal ones?
          if this is the case for you? http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205181#4205181

          • 2. Re: ExtendedDatatable size..
            smutzski

             

            "ilya_shaikovsky" wrote:
            you mean table sizes or columns sizes? horizntal ones?
            if this is the case for you? http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205181#4205181


            Yes that's what i mean.. but also vertical...
            When i put % in, the extra column is also showned?

            This is my ExtendedDatatable:
            <rich:extendedDataTable id="userOverview" binding="#{Datatable.table}" value="#{CreateUser.userList}" var="user" rows="15" width="400px" selectionMode="multi">
             <rich:column label="User" width="35%">
             <f:facet name="header"><h:outputText value="User"/></f:facet>
             <h:outputText value="#{user.id}"/>
             </rich:column>
             <rich:column label="Language" width="35%">
             <f:facet name="header"><h:outputText value="Languages"/></f:facet>
             <h:outputText value="#{user.language.id}"/>
             </rich:column>
             <rich:column label="Usergroup" width="30%">
             <f:facet name="header"><h:outputText value="Usergroup"/></f:facet>
             <h:outputText value="#{user.userGroup.id}"/>
             </rich:column>
             </rich:extendedDataTable>


            • 3. Re: ExtendedDatatable size..
              ilya_shaikovsky

              so your snippet should produce the table with all three columns fit the table width. extra column will present but it will not be visible in this case.

              you have to defined vertical sizes because the table are provides vertical scroll so it should be limited by vertical size.