Announcement

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

    ListGrid -How to display just group summaries and not actual underlying records

    SmartClient Version: SC_SNAPSHOT-2011-08-02/LGPL Development Only (built 2011-08-02)
    Browser : IE9
    GWT Version : 2.5

    In ListGrid, is it possible to hide the records so that only group summaries are shown and underlying records are not displayed?
    we are calling <code>Grid.setData(Record[] records] </code> to set the data on grid.

    #2
    With groupStartOpen:"none", only groups will be shown by default, not members of groups. The user can then open the groups via clicking as usual; it's not clear if that's what you want.

    Comment


      #3
      Basically we want all grid groups to be expanded and only summaries displayed, as shown in below illustration.
      This is how grid will look like normally when all groups are opened:
      Code:
      (Group) fieldA valueA
         (Inner Group) fieldB value 1
            Record with fieldA:"A", fieldB:1
            Record with fieldA:"A", fieldB:1
            [Inner Group Summary]
         (Inner Group) fieldB value 2
            Record with fieldA:"A", fieldB:2
            [Inner Group Summary]
         [Group Summary]
      (Group) fieldA valueB
         (Inner Group) fieldB value 1
            Record with fieldA:"B", fieldB:1
            [Inner Group Summary]
         [Group Summary]
      [Grid Summary]
      We want it so that records could be hidden as below:
      Code:
      (Group) fieldA valueA
         (Inner Group) fieldB value 1
            [Inner Group Summary]
         (Inner Group) fieldB value 2
            [Inner Group Summary]
         [Group Summary]
      (Group) fieldA valueB
         (Inner Group) fieldB value 1
            [Inner Group Summary]
         [Group Summary]
      [Grid Summary]
      Last edited by nayyer.kamran; 7 Feb 2013, 01:49.

      Comment


        #4
        Interesting idea, no one has ever asked for this before.

        There isn't currently a way to do this except by some pretty severe hacks (like trying to set all the rows that have actual Records to be 1px tall as a means of "hiding" them).

        If you want a built-in feature for this, the best approach is Feature Sponsorship.

        Comment


          #5
          One additional note: If you weren't already aware of this, we do have support for showing group summary info in the group header node.
          This would mean that the group summary info would be visible when a group is collapsed.
          Not exactly what you're describing for but it may be a step closer than the default behavior.

          Comment

          Working...
          X