I am trying to use Telerik's MVC grid but I am having trouble figuring out how to intergrate it with REST service. I am using Razor.
I am using your WebService Binding example as my start http://demos.telerik.com/aspnet-mvc/razor/grid/webservice?theme=vista
But it uses a SOAP service and I am having a couple of problems trying to plug in a REST service.
1) A complex type cannot be passed as REST parameter because QueryStringConverter cannot handle it.
2) I am not sure how to return a GridModel from REST. I've tried returning GridModel and returning
context.CreateXmlResponse(gridModel). Neither works (
Do you have any suggestions?
So far, my best idea is to take over paging myself and then utilize two REST calls: one to get the integer total count and a another to return a collection of dataobjects representing the page of grid rows. Then, on the client, I can create the GridModel or do whatever I need to do to bind to the grid.