Announcement

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

    Server-side gruping

    I'm new to SmartGWT. I want to implement ListGrid with serverside gruping. I'm using version 5.1.

    So far i managed to implement custom data source which feeds the grid with data but grouping is done on client only. Grid asks server for data but does grouping on his own.

    What do i have to do to make Grid ask for grouping on the serverside?

    #2
    Hi marchew,

    client side grouping is not the same as Database group by. See this blog post and my example here.

    Best regards,
    Blama

    Comment


      #3
      I am aware of that. What i'm looking for is the same client interface (Grouping config dialog, etc.) but functionality implemented completely by me on the server.

      Comment


        #4
        I don't think this is possible, e.g. sending groupheader-rows from the server.
        What is your usecase? Do you know ListGridField.setGroupTitleRenderer() and ListGridField.setGroupValueFunction()?

        Best regards,
        Blama

        Comment


          #5
          I think that ListGridField.setGroupValueFunction(), would do the trick if
          Code:
          java.lang.Object getGroupValue(java.lang.Object value,
                                       ListGridRecord record,
                                       ListGridField field,
                                       java.lang.String fieldName,
                                       ListGrid grid)
          was asynchronous.
          Last edited by marchew; 16 Mar 2015, 08:23.

          Comment

          Working...
          X