问题
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