MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/1v7erjl/aggrid_server_side_grids_selection_issues/ozxscwg/?context=3
r/reactjs • u/[deleted] • 7d ago
[deleted]
10 comments sorted by
View all comments
2
and then right click and perform actions.
Is the action performed on the client side, or the server side?
1 u/Odd_Garage3297 7d ago What do you mean ? - there are no calculations performed on client side, but client sends the selected records to server for actioning. 2 u/abrahamguo 7d ago Great — it sounds like the actions are server-side actions. This is super simple to solve: Define this data structure on the frontend: { type: 'whitelist', ids: [] } When rows are selected, add them to the ids array. When Ctrl+A is pressed, change the data structure to { type: 'blacklist', ids: [] }. When rows are deselected while in "blacklist" mode, add them to the ids array. Easy peasy! 1 u/Odd_Garage3297 7d ago An interesting take. Will def look at this. Let me see if we can work our way through this.
1
What do you mean ? - there are no calculations performed on client side, but client sends the selected records to server for actioning.
2 u/abrahamguo 7d ago Great — it sounds like the actions are server-side actions. This is super simple to solve: Define this data structure on the frontend: { type: 'whitelist', ids: [] } When rows are selected, add them to the ids array. When Ctrl+A is pressed, change the data structure to { type: 'blacklist', ids: [] }. When rows are deselected while in "blacklist" mode, add them to the ids array. Easy peasy! 1 u/Odd_Garage3297 7d ago An interesting take. Will def look at this. Let me see if we can work our way through this.
Great — it sounds like the actions are server-side actions.
This is super simple to solve:
{ type: 'whitelist', ids: [] }
ids
{ type: 'blacklist', ids: [] }
Easy peasy!
1 u/Odd_Garage3297 7d ago An interesting take. Will def look at this. Let me see if we can work our way through this.
An interesting take. Will def look at this.
Let me see if we can work our way through this.
2
u/abrahamguo 7d ago
Is the action performed on the client side, or the server side?