Skip to content

Know source of onGroupingDone event #10360

Description

@Eralmidia

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions