This is a migrated thread and some comments may be shown as answers.

ToDataSourceResult from WebService Asmx

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aldo
Top achievements
Rank 2
Aldo asked on 25 Mar 2014, 04:38 PM
Hola, i have an application that retrieve data from a webservice .asmx.

If i try to create a WebMethod that return an IEnumerable, my webservice return the error, that IEnumerable is not serializable, there's a way to pass the DataSourceRequest to webservice or return an IEnumerable.

This to avoid the ToList() method that make my performance lazy.

Thank you 

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 27 Mar 2014, 12:32 PM
Hello Aldo,

ToDataSourceResult extension method is intended to be used with the MVC wrappers. 

What I would suggest you is to follow the implementation covered in this project:

https://github.com/telerik/kendo-examples-asp-net/tree/master/grid-web-service-crud

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Aldo
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Share this question
or