简体   繁体   中英

Kendo UI for Angular how to save grid state

How to save the state of an Angular 2+ Kendo grid. In AngularJS we used getOptions and setOptions ( https://www.telerik.com/forums/persist-state-in-angularjs ) but I can not find any documentation on how to do this for the latest version of Kendo for Angular ( https://www.telerik.com/kendo-angular-ui/components/grid/ ). Thank you in advance for any help or guidance.

Maybe this is a good start: https://plnkr.co/edit/?p=preview

we use this approach to store filter state:

public state: State = {
        skip: 0,
        take: 5,

        // Initial filter descriptor
        filter: {
          logic: 'and',
          filters: [{ field: 'ProductName', operator: 'contains', value: 'Chef' }]
        }
    };

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM