This is a migrated thread and some comments may be shown as answers.

Save/restore grouping,sorting only using setOptions

1 Answer 238 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kudryk
Top achievements
Rank 1
Kudryk asked on 31 Mar 2015, 02:57 PM
Is it possible to restore grouping, sorting settings only using grid.setOptions method ?
Something like grid.setOptions({dataSource:{group:new_options.dataSource.group}});

I don`t want to restore toolbar and pager settings
http://jsfiddle.net/0y68cv9y/7/

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 02 Apr 2015, 08:43 AM

Hello Kudryk,

If you want to restore just these two settings you can use the dataSource group and sort methods that will return only this specific information. Here is the documentation about it:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-group

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-sort

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Kudryk
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or