Is it possible to change name "dataState" to something else? I have the question because when I have two separate Kendo React grids on the same page, I want to avoid having changes on one grid (dataState) affect the other grid as well
1 Answer, 1 is accepted
1
Accepted
Wissam
Telerik team
answered on 01 Aug 2023, 07:35 AM
Hello,
`dataState` is a state variable and can be renamed to anything else. Basically, it stores an object that contains the values of sort, group, filter, skip, and take that are passing to the Grid by passing its spread:
{...dataState}
In addition, since you have two Grids and each has its own dataState, you should also set their onDataStateChange events to different event handlers.
I hope this helps, but please let me know if you have any further questions.