Hi,
I am attempting to create a grid that uses a WCF service as the datasource it is bound to. This has started well... I am able to pass back the data and have incorporated paging & sorting.
I am now looking at incorporating the Grouping and Filtering features, however this is proving problematic.
What I would like to do is pass the 'DataSourceRequest' directly to WCF as it contains all the arguments regarding the sorting, filtering & grouping in it
e.g.
I then tried to add the Kendo.MVC library to my WCF project as a reference library so that I would be able to use the DataSourceRequest type.... However when I add the Kendo.MVC.dll as a reference and then compile the project it is unable to import the Kendo namespace.
I assume this is because the wrapper will only work within a MVC project?
Is it possible to add the data types from the MVC wrapper to my WCF project?
Thanks
Chris
I am attempting to create a grid that uses a WCF service as the datasource it is bound to. This has started well... I am able to pass back the data and have incorporated paging & sorting.
I am now looking at incorporating the Grouping and Filtering features, however this is proving problematic.
What I would like to do is pass the 'DataSourceRequest' directly to WCF as it contains all the arguments regarding the sorting, filtering & grouping in it
e.g.
public ActionResult Index([DataSourceRequest(Prefix = "Grid")] DataSourceRequest request) { if (request.PageSize == 0) { request.PageSize = 10; } MvcApplication3.psr.ProductServiceClient psrc = new MvcApplication3.psr.ProductServiceClient(); ResultData results = psrc.KendoGridQuery(DataSourceRequest); ViewData["total"] = results.Count; return View(results.Data); }I then tried to add the Kendo.MVC library to my WCF project as a reference library so that I would be able to use the DataSourceRequest type.... However when I add the Kendo.MVC.dll as a reference and then compile the project it is unable to import the Kendo namespace.
I assume this is because the wrapper will only work within a MVC project?
Is it possible to add the data types from the MVC wrapper to my WCF project?
Thanks
Chris