Hi again,
I found the references to save and load grid's state at this page:
https://paramquery.com/pro/demos33/grid_stateI'm going to explain the problem.
I've a table with REMOTE data and REMOTE paging and I need to save its settings and restore them when the table appear. So it's like the demo (link) but with remote paging so this:
create: function () {
//restore state of grid.
loadStateSuccess = this.loadState({ refresh: false });
},
will become:
create: function () {
//restore state of grid.
loadStateSuccess = this.loadState({ refresh: true});
},
I saw that the library apply the settings after the first call with that conseguences:
- the backend will receve the uncorrect request and the correct one so increase the BE side's work.
- If the response arrive fast I can see for an instant the uncorrect data before the new data (and correct) arrives.
- the user will have a bad experience of our product
We have Paramquery Pro v.3.3.5.