Announcement

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

    Listgrid grouping + updateData + local Datasource

    Hi Isomorphic,

    I'm using smartgwt.jar version: v12.0p_2020-02-29

    I'm using a Listgrid with a local Datasource.
    For exemple, i will take 3 columns (Name, Surname,Age), grouping is enable on column "Age".

    If i call grid.updateData(record), sort is launched if i modify column "Name" or "Surname".

    In our case, sort is time consuming (and "grouping..." screen is unnecessarily displayed)

    In datachanged method (in ListGrid.js), i see that you never use groupByFields for check if grouping is necessary for the updated record.

    Is-it expected, a bug or an enhancement?

    Thanks for your answer.
    Last edited by mike7778; 2 Mar 2020, 02:22.

    #2
    Custom grouping and or custom sorting means that we don't whether the current grouping would be changed only by a change to groupByFields. So this isn't a bug. It would be possible to make an enhancement that would allow you to explicitly declare that only a change to the current sort and group fields will actually affect grouping, so that in your corner case you could optimize the behavior.

    Comment


      #3
      I will be very happy if i can explicitly declare that only a change to the current sort and group fields will actually affect grouping.
      I think this is a relatively common case.

      Comment

      Working...
      X