Announcement

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

    ListGrid Group summary and Grid Summary

    Hi,

    Is there anyway we can change the location of the group and grid summary.

    Currently the grid summary is at the bottom of the grid hence if the grid size is greater than the window size, the user has to scroll down the page.

    Alternatively for the group summary is it possible to get these calculated values and include them in the group by headers

    Any help would be much appreciated.

    Thanks

    #2
    Any ideas on this smartgwt team?

    Comment


      #3
      Our users are requesting the same feature; to include the grid summaries in the group headers so you don't have to expand the group to see the totals. Is this possible?

      Comment


        #4
        There is the getGroupTitle() override, although this might ultimately lead to recalculating some of the summary information..

        What sort of API were you thinking, something like setGroupTitleTemplate with a dynamic String? ("Total order value: $summaryValue")

        Comment


          #5
          I was thinking of something like setShowGroupSummaryInHeader(true). The Tree Grid sample is a good example of the sort of thing our users are looking for. If that were showing summaries by Name the Name column would have the group tree controls. At the leaf level would be the ListGridRecord values plain and simple, but at the group summary level the header row would show the Name and the group totals in that same row. That way you could collapse all groups and see nothing but the summary rows. As it is, you have to expand each group to see the totals so there is no way to easily view just the group totals.

          Comment


            #6
            I've attached a screen shot showing what we're looking for. The last group is expanded but the others are not. You can see that the group header row contains the group totals, so when groups are collapsed you can still see the totals. Expanding a group shows the details.
            Attached Files

            Comment


              #7
              Any ideas on how to accomplish this with SmartGWT? It seems that all the pieces are there. ListGrid.getGroupTree() would give you the tree and the summarized data. It should just be a matter of rearranging things so that the group by fields show up in their respective columns with the tree expand/collapse controls and the summarized data shows up in the group header row instead of having a separate summary row at the end of each group.

              Comment


                #8
                This is a good feature idea, but it won't be added any time soon unless someone sponsors it. If you were to roll your own, you could use a TreeGrid, doing your own sums and generating your own records that contain summary values.

                Comment


                  #9
                  Can you contact me offline with an estimate for adding this feature? Thx

                  Comment


                    #10
                    Just want to weigh in on this, my users have really been looking for something like in the screenshot. I posted a thread about it back in dec/jan, but got no response.

                    Would be fantastic to get something similar.

                    Comment


                      #11
                      Note, this ended up being added - the flag is showGroupSummaryInHeader.

                      Comment

                      Working...
                      X