Is there existing support to load grouping state (e.g., from DB) in SlickGrid React? #2084
Replies: 2 comments 2 replies
-
Grouping is not part of Grid State/Presets slickgrid-universal/packages/common/src/enums/gridStateType.enum.ts Lines 12 to 27 in e676246
You can maybe try to get the grouping info from the DataView and then try slickgrid-universal/packages/common/src/core/slickDataview.ts Lines 395 to 398 in e676246 Then use something like this to get the group column names. If the project is useful to you and you haven't done that yet, you could give it a star ⭐ |
Beta Was this translation helpful? Give feedback.
-
Grid State now includes Grouping (only showing which column Ids are grouped) in v9.7.0 and Grouping via Grid Presets will only work with Draggable Grouping (it won't work for regular Grouping) but it's still preferable to use Draggable Grouping |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm using slickgrid-react with enableDraggableGrouping: true, and I'm currently implementing a feature to save and load grid preferences (like column widths, filters, etc.) from a backend API.
I wanted to check:
🔹 Is there any existing API or utility in SlickGrid Universal or SlickGridReact to persist and restore grouping state?
For example, if I group by region and status, can that grouping be programmatically restored when the grid is reloaded?
🔹 Ideally, I’d like to integrate it with the gridStateService.getCurrentGridState() and setGrouping() if such methods are available.
If nothing exists yet, is there a recommended way to:
Get the current groupBy columns from draggableGroupingPlugin?
Programmatically set grouping from a saved list like ['region', 'status']?
And how can I persist grouping from db?
Beta Was this translation helpful? Give feedback.
All reactions