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

Post filtered grid's results back to server

2 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 11 Jul 2013, 03:27 PM
Hi

How can I go about posting the grid back to my controller with the filtered results?

I basically have a filterable grid and a button which need to handle the data from the grid, but only the filtered results using the built-in filtering functions.

Thanks

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Jul 2013, 10:53 AM
Hello Ryno,

How do you wish to post the data? If you wish to use a form then I can suggest to use the approach from this code-library. If you wish to post it via Ajax then you could get the data that is currently displayed via the dataSource view method and post it as JSON. If you are using both paging and filtering and only the filtered data for the current page is displayed, then you could send the current filters as demonstrated in this code-library and query the data on the server.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Johan
Top achievements
Rank 1
answered on 17 Jul 2013, 06:37 PM
Hi Daniel

Thanks for getting back to me.

Your last suggestion - using both paging and filtering was exactly what I was looking for.

Thanks for your help!
Tags
Grid
Asked by
Johan
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Johan
Top achievements
Rank 1
Share this question
or