ICEfaces
  1. ICEfaces
  2. ICE-8094

ace:dataTable - add new "staticHeaders" attribute

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.BETA2, 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces ace:dataTable component
    • Assignee Priority:
      P2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      While the current ace:dataTable supports scrollable dataTable with static headers and footers, it would be nice to be able to configure whether or not the headers/footers where static when using "scrollable=true".

      By specifying "scrollable=true" and "staticHeaders=false", the scrollable mode would not have to use the relatively expensive column sizing calculations and could rely on the native browser column sizing. In addition, this mode would enable the paginator controls (if pagination was also being used) to remain centred within the visible table instead of scrolling horizontally with the table.

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          To preserve backwards compatibility, the default value should be "staticHeaders=true".

          Show
          Ken Fyten added a comment - To preserve backwards compatibility, the default value should be "staticHeaders=true".
          Hide
          Nils Lundquist added a comment -

          Revision #29279
          Committed by nils.lundquist
          Moments ago
          ICE-8094 - Added staticHeaders table scrolling parameter. Refactored DataTable rendering to combine scrollable and "regular" table code paths. Added static helper classes to modularize independent sections of the rendering and reduce the 1200+ lines of code in the DataTableRenderer.

          CoreRenderer helper method, resolveWidgetVar was made static by necessity. Could've also been refactored into a util class. This had no effect of the functionality of resolveWidgetVar.

          Show
          Nils Lundquist added a comment - Revision #29279 Committed by nils.lundquist Moments ago ICE-8094 - Added staticHeaders table scrolling parameter. Refactored DataTable rendering to combine scrollable and "regular" table code paths. Added static helper classes to modularize independent sections of the rendering and reduce the 1200+ lines of code in the DataTableRenderer. CoreRenderer helper method, resolveWidgetVar was made static by necessity. Could've also been refactored into a util class. This had no effect of the functionality of resolveWidgetVar.

            People

            • Assignee:
              Nils Lundquist
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: