Kendo UI for Angular how to save grid state

末鹿安然 提交于 2020-07-09 06:06:49

问题


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.


回答1:


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' }]
        }
    };


来源:https://stackoverflow.com/questions/48590942/kendo-ui-for-angular-how-to-save-grid-state

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!