This question is locked. New answers and comments are not allowed.
Hi,
I have a page in my MVC app that consists of some filter options (a couple of select boxes) and the results which display in the Telerik MVC grid. The grid also uses custom binding to implement paging and sorting. I had this working easily with server binding and I also managed to get it working with Ajax binding. The initial load, paging and sorting all worked using my controller method tagged with the [GridAction] attribute and passing back a GridModel into the View. This all worked great.
However, remember those filter options I have at the top? When I click Search to initiate a search it still does a postback.
I want to get rid of this postback, such that the data is retrieved from my controller method using an Ajax call and rebound to the grid. I would like to take out the .DataBinding() from the grid definition and use jQuery to do the databinding, both for initial load and when the user clicks Search.
Can someone point me in the right direction? There do not appear to be any code samples that do this. The Twitter example doesn't call into a controller method, and I want to use my controller method as that is how the paging and sorting works.
many thanks,
Simon.
I have a page in my MVC app that consists of some filter options (a couple of select boxes) and the results which display in the Telerik MVC grid. The grid also uses custom binding to implement paging and sorting. I had this working easily with server binding and I also managed to get it working with Ajax binding. The initial load, paging and sorting all worked using my controller method tagged with the [GridAction] attribute and passing back a GridModel into the View. This all worked great.
However, remember those filter options I have at the top? When I click Search to initiate a search it still does a postback.
I want to get rid of this postback, such that the data is retrieved from my controller method using an Ajax call and rebound to the grid. I would like to take out the .DataBinding() from the grid definition and use jQuery to do the databinding, both for initial load and when the user clicks Search.
Can someone point me in the right direction? There do not appear to be any code samples that do this. The Twitter example doesn't call into a controller method, and I want to use my controller method as that is how the paging and sorting works.
many thanks,
Simon.