Usage of DataSourceRequest / DataSourceResult wihtout MCV coupling

2 posts, 0 answers
  1. Pascal
    Pascal avatar
    14 posts
    Member since:
    Mar 2016

    Posted 17 Nov 2016 Link to this post

    Hello Telerik team,

    I just wanted to know if there are plans to decouple DataSourceRequest / DataSourceResult from the MVC subsystem ?

    We want to use it between a WCF client and a WCF server but it does not serialize well with the SOAP MVC XML serializer.
    We succeeded in serializing JSON in the WCF XMLmessage although it require us to convert/parse JSON to DataSourceRequest/DataSourceResult both at the client and the server.
    By the way in order to achieve this the WCF hosting project has to reference a bunch of MCV assemblies just because the Kendo.Mvc.Ui assembly depends on it.

    In addition to this serializing / deserializing JSON <-> DataSourceRequest/DataSourceResult is easy with the Newtonsoft JSON converter but it becomes complicated if we want to transfer an object instead of a JSON string (representing a serializable object similar to DataSourceRequest/DataSourceResult) ...

    I may be wrong but it seems to me that all of this seems fairly complex for a task that sounds simple.

    I saw the following post about using existing WCF service but I think this does work only with REST web service.

    So is there any plan to be able :
     - to use DataSourceRequest / DataSourceResult in wcf xml serialization out of the box
     - to use the DataSourceRequest / DataSourceResult types in a convenient way without referencing all the MVC subsystem types (such as System.Web.Mvc.dll, System.Web.WebPages.dll, ...)

    ?

    Thanks for your work and support,
     Dev

     
  2. Ianko
    Admin
    Ianko avatar
    1720 posts

    Posted 21 Nov 2016 Link to this post

    Hello Pascal,

    DataSourceRequest and DataSourceResult classes are designed to be part of MVC applications and there are no plans to decouple them from the Kendo.MVC assembly. Mainly, because the functionality behind is design to operate with JSON-serializable objects. 

    However, the MVC wrappers can by used with SOAP and REST services, although, there are some built-in features in DataSourceReuqest and DataSourceResult that will not work automatically with these data binding options. You can read more about the possible configurations here: http://www.telerik.com/forums/unable-to-consume-wcf-data-service-using-kendo-grid

    Also, if you would like to see some utilities or products that would help you to create services and bind them to our products I encourage you to suggest that in the Kendo Feedback portal, where other developers from the community could vote for it, comment and raise the demand for such a feature.

    Regards,
    Ianko
    Telerik by Progress
    Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Back to Top