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

How to delete all records from a Kendo paged and filtered grid (in the controller)

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 03 Jul 2014, 06:30 AM
Id like to add a button to delete all records referenced in a Kendo paged and filtered grid (all paged records) abiding by any grid filters

Obviously Telerik MVC extensions abstracts the work it does with iqueryable at the controller by the use of the extension ToDataSourceResult and the [DataSourceRequest] DataSourceRequest request parameter

So the questions are,

Is it possible to somehow create a custom controller action and associated front end code to pass the current filtering regime

Is it then possible in the action to delete all records associated with that filtering.

i might have a paged grid with 1000 records (10 per page), filtered by productId, it would be nice to be able to create a custom toolbar button called "delete all", to delete all the matched filtered recordsPlease note, the toolbar button i can do,

however im not sure if you have access to iqueriable and DataSourceRequest mechanism in a way that might make this feasible

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 07 Jul 2014, 08:06 AM
HI Michael,

Similar behavior of sending the filter parameter to the server side is already demonstrated in the following CodeLibrary demo:

Regards,
Vladimir Iliev
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
Michael
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or