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

Working with filtered Grid results

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 29 May 2014, 12:51 PM
Hi Kendo,

Once a user has filtered the data in a Kendo Grid, is it somehow possible to pass only the filtered data to an MVC Controller action? Can I only pass the data that is being displayed in the Grid to a routine that processes the users choices? What might be the best way to deal with this scenario? Thanks for any suggestion

-Carl

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 31 May 2014, 08:57 AM
Hi Carl,

You can get the currently displayed items using the Grid's dataSource.view method. If server filtering is used, then calling the DataSource's data method will return all items matching the filtering criteria, regardless of whether they are being displayed on the current Grid page or not. The items can then be sent to a controller using a regular Ajax request.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Carl
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or