2 Replies Latest reply on Jun 16, 2008 3:53 AM by mvitenkov

    Change column width in datatable

    ghermezkon

      hi
      how to change column width in rich data table???

        • 1. Re: Change column width in datatable
          lmk

          hi,

          use style in rich:column

          <rich:column style="width:10px;">
          
          </rich:column>
          





          • 2. Re: Change column width in datatable

            Use width attribute for column, & keep in mind total width of dataTable component, like this:

            <rich:dataTable ...width="#{dataTable.width}"..>
            <rich:column ... width="#{dataTable.colWidth}">
            ...
            </rich:column>
            </rich:dataTable>

            Use style attribute with "width" for rich:column & rich:dataTable careful, because style="width:250px;" & width="250" shouldn't be crossed.