How to Retrieve and set a Consolidated Schema for User action Table Filters and Sorts? #738
Spoorthi-S28
started this conversation in
General
Replies: 1 comment
-
|
hi, @Spoorthi-S28, that's a very good question Inside of plugins you have a clear access to all underlying/core grid structure. I think good starting point for you will be https://github.com/revolist/revogrid/blob/main/src/plugins/filter/filter.plugin.tsx We do similar things in our pro version with event plugin, I just didn't think someone would need such functionality before. Let me know if you have any questions I'll try to point you into the right direction. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to check if it's possible to define a table schema that captures all user interactions such as filtering and sorting for each column. Specifically, in scenarios where users apply both sorting and filtering across multiple columns simultaneously, is there a way to retrieve a complete and structured summary of all the actions performed—per column?
For example, if a user filters and sorts on the "size" and "name" columns, I'd like to receive a consolidated schema or data object that includes the applied filters, their logical connectors (e.g., AND/OR), and sorting directions for each column.
Tried: const columnState = params.api.getColumnState()
Expecting the below information,but not in the same structure.
[
{
"colId": "size",
"sort": "asc",
"filters": [
{ "id": "equals", "value": "S" },
{ "connector": "AND" },
{ "id": "contains", "value": "M" }
]
},
{
"colId": "name",
"sort": "dsc",
"filters": [
{ "id": "contains", "value": "m" },
{ "connector": "OR" },
{ "id": "beginsWith", "value": "sp" }
]
}
]
Beta Was this translation helpful? Give feedback.
All reactions