This question is locked. New answers and comments are not allowed.
We are beginning to look at WCF4 REST Services and MVC3. We are currently using SOAP and Telerik controls for WebForms.
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
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 (Error 324 (net::ERR_EMPTY_RESPONSE)). (I've just started experimenting with REST and so far have only returned collections from Entity Framework so there may be something simple I don't know yet.)
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.