Question
I have a grid, in which I want to store the grouping state to settings on the server, and then load and reapply the grouping when the page is loaded. In order to save the settings, I listen to the onGroupingDone event. However, it seems like this event is triggered also when the grid is initialized (setting the sortingExpressions input). Is this by design, and if it is, how can I determine if the sorting was the initial assignment of grouping expressions or a subsequent grouping done by the user (which should be saved)?
I guess the initial grouping will always be the first one, so maybe I could do an rxjs skip(1), but that doesn't feel particularly robust.
- igniteui-angular version: 12
- browser:
Question
I have a grid, in which I want to store the grouping state to settings on the server, and then load and reapply the grouping when the page is loaded. In order to save the settings, I listen to the onGroupingDone event. However, it seems like this event is triggered also when the grid is initialized (setting the sortingExpressions input). Is this by design, and if it is, how can I determine if the sorting was the initial assignment of grouping expressions or a subsequent grouping done by the user (which should be saved)?
I guess the initial grouping will always be the first one, so maybe I could do an rxjs skip(1), but that doesn't feel particularly robust.