@vitaliy_kretsul
Please, check the following example:
https://snippet.webix.com/9m91bgbb
This could be achieved with set/getState
API of the inner table. But please note that by default, IDs of the aggregated data are unique (timestamp-based), while restoring the state assumes a consistent structure of the grid (column and data IDs);
To be able to fully apply the previous state after reloading, the following settings are required:
-
stableRowId : true
should be set in Pivot configuration (IDs of aggregated data will be based on the current structure),
- Pivot structure should be saved as well as related state,
- Raw data should not be changed since the state is saved (changes would affect the column IDs).
As an option, you can restore a partial data state:
var state = webix.storage.local.get("state");
pivot.$$("data").setState({
open:state.open,
sort:state.sort
});