ICEfaces
  1. ICEfaces
  2. ICE-3381

Add a resizableColumnWidths attribute to dataTable for mimacom.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      mimacom needs to access the resizable column widths of a dataTable.

        Activity

        Hide
        yip.ng added a comment -

        Markup is like this:

        <ice:dataTable id="iceDataTbl" clientOnly="false"
        var="employee" resizableColumnWidths="#

        {resizeableColumnBean.columnWidths}"
        value="#{resizeableColumnBean.employees}"
        resizable="true" >

        where #{resizeableColumnBean.columnWidths}

        is like this:

        private String columnWidths = "88px,108px,208px";

        public void setColumnWidths(String columnWidths)

        { this.columnWidths = columnWidths; }

        public String getColumnWidths()

        { return this.columnWidths; }

        columnWidths is dynamically updated as sizes of columns change on the client side.

        Show
        yip.ng added a comment - Markup is like this: <ice:dataTable id="iceDataTbl" clientOnly="false" var="employee" resizableColumnWidths="# {resizeableColumnBean.columnWidths}" value="#{resizeableColumnBean.employees}" resizable="true" > where #{resizeableColumnBean.columnWidths} is like this: private String columnWidths = "88px,108px,208px"; public void setColumnWidths(String columnWidths) { this.columnWidths = columnWidths; } public String getColumnWidths() { return this.columnWidths; } columnWidths is dynamically updated as sizes of columns change on the client side.
        Hide
        Patrick Guerin added a comment -

        Will we be able to use this attribute on the unresizable columns to set up their size dynamically in my bean?

        Show
        Patrick Guerin added a comment - Will we be able to use this attribute on the unresizable columns to set up their size dynamically in my bean?
        Hide
        yip.ng added a comment -

        No. This only works for a resizable table (resizable="true") that sends dynamic column widths from the client back to the server (clientOnly="false").

        Show
        yip.ng added a comment - No. This only works for a resizable table (resizable="true") that sends dynamic column widths from the client back to the server (clientOnly="false").

          People

          • Assignee:
            Unassigned
            Reporter:
            yip.ng
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: