Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Group controls in groupable table

    When we group large table is it possible to have
    pagination controls within each group?

    Is it possible to add individual controls for each group header?

    Something like:

    http://www.gwt-ext.com/demo-ux/#gridRowActionsSample

    Thanks,
    --MG

    #2
    The built-in grouping behavior doesn't have pagination (all data needs to be loaded client-side for a purely client-side grouping behavior). Where did you have in mind placing the pagination controls? As a custom component, you might built this as a SectionStack of ListGrids..

    On controls in the group header, you could do this with an override getGroupTitle() that produces <img> tags.

    Comment


      #3
      It would be very difficult to align columns across groups if we
      implement it as Stack of ListGrids.

      Also client side grouping doesn't make much sense with large tables.
      If you ask to group by you would not even end up displaying all groups available in whole dataset.

      With server side grouping and pagination each group has to be paginated separately so logically pagination control for each group could be somewhere next to 'minimize/maximize' group control.

      Thanks,
      --MG

      Comment


        #4
        Originally posted by Isomorphic
        The built-in grouping behavior doesn't have pagination (all data needs to be loaded client-side for a purely client-side grouping behavior). Where did you have in mind placing the pagination controls? As a custom component, you might built this as a SectionStack of ListGrids..

        On controls in the group header, you could do this with an override getGroupTitle() that produces <img> tags.
        Hi,

        Could you give me an example how to override getGroupTitle()
        in SmartGWT. Thanks a lot.

        KC

        Comment


          #5
          Originally posted by kccheng
          Hi,

          Could you give me an example how to override getGroupTitle()
          in SmartGWT. Thanks a lot.

          KC
          Support for custom group titles have been added to SVN. Use

          ListGridField.setGroupTitleRenderer(GroupTitleRenderer) and
          ListGridField.setGroupValueFunction(GroupValueFunction) and

          View the source of the Custom Grouping sample.

          Sanjiv

          Comment

          Working...
          X