jQuery UI Widgets Forums React Grid is not maintaining state on rerendering


This topic contains 2 replies, has 2 voices, and was last updated by  ashvani18 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • ashvani18


    we are using JQxGrid in React functional component, whenever we update any state method exposed by useState hook, react runs the re rendering and lose the grid state.

    e.g suppose I apply filter on grid and then click on a button that update the state , grid is recreated again and filters are removed, same for paging and sorting.


    Hi ashvani18,

    Grid does not maintain its state unless you save/load it through the Grid’s savestate and loadstate methods.

    Best regards,
    Peter Stoev

    jQWidgets Team


    But it seems a problem in react component, if on each re rendering grid lose its state , it is not a usable component in react, since re rendering , is common in functional component, problem is that, where to get the state and where to load the state, we need to get the state on each button clicks wherever states are changing?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.