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

Connecting to Static Data List of Objects

1 Answer 946 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
Iron
Iron
John asked on 21 Jan 2016, 04:17 AM
I have a dll in my project created by a colleague which returns to me a class list of objects. "Restaurants" This is initialized at the beginning of the program and never changes and from what I can tell is created from a large XML file. I have kendo ui on the frontend and the data is too exhaustive to pull if all via JSON to the front end kendo datasource. (it just kills performance and makes the browser cry) I was wonder if there is guidance on how to use the datasource read capabilities to read portions of the list and the pull more later...etc. Basically allowing server side to limit the data on the front side. Do I need to build a web service? I have a web service semi created but I am currently manually keeping track of current amount of front end to back end and it very hard to keep up with all the details. It works, but I believe the grid should be able to perform faster. All sorting & filtering is currently done manually which is very ugly. This is literally just a list of objects on the back side and reading the data. (Sorry, really a newb in regards to backend development for this. Always just been a front end guy calling soap stuff created by others)

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 22 Jan 2016, 04:01 PM
Hi John,

I can recommend creating some sort of a web service that returns parts from the data and supports server-side data operations, especially paging (taking page, and pageSize as request parameters from the client).

Then the Kendo UI DataSource can read the data, making a call to the previously created endpoint and use serverPaging to provide only the requested page of items to the client. This will take the load of transporting and processing all items off the browser.

http://docs.telerik.com/kendo-ui/framework/datasource/overview

http://docs.telerik.com/kendo-ui/framework/datasource/crud

I hope this helps.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
John
Top achievements
Rank 1
Iron
Iron
Answers by
Dimiter Topalov
Telerik team
Share this question
or