0 Replies Latest reply on Aug 5, 2012 10:09 PM by peng_roger peng

    How to fix column width in <rich:datatable>

    peng_roger peng Newbie

      Xhtml file  Source:

       

      <rich:dataTable id="table" value="#{stockInBB.dataModel}" var="row" rowClasses="odd-row,even-row".........

         styleClass="invoiceQueryDatatable">

      <f:facet name="header">

          <rich:columnGroup>

           <rich:column>

            <h:outputText value="#"></h:outputText>

           </rich:column>

           <rich:column>

                  .

                  .

                  .

            <h:outputText value="操作"></h:outputText>

           </rich:column>

      </rich:columnGroup>

      </f:facet>

      <rich:column width="160px">

          <h:outputText value="#{row.invoiceNo}" maxlength="10" />

         </rich:column>

                ....

                .....

         <rich:column width="80px">

          <h:outputText value="#{row.invoiceStatusName}" maxlength="10" />

         </rich:column>

       

       

        nvoiceQueryDatatable style like this:

      width: 100%;

      height: 100%;

      white-space: nowrap;