Описание тега kendo-datasource
The KendoDataSource component is an abstraction for using local (arrays of JavaScript objects) or remote (XML, JSON, JSONP) data. It fully supports CRUD (Create, Read, Update, Destroy) data operations and provides both local and server-side support for sorting, paging, filtering, grouping, and aggregates.
The Kendo UI DataSource component plays a central role in practically all web applications built with Kendo UI. It is an abstraction for using local data—arrays of JavaScript objects—or remote data—web services returning JSON, JSONP, oData or XML.
The Kendo UI DataSource has many abilities and responsibilities, among which to:
- Retrieve data from a remote endpoint.
- Maintain the structure and type of the data (schema).
- Process serialization formats to and from a remote endpoint. synchronize updates—create, update, delete to and from a remote endpoint. Maintain an in-memory cache of data, including changes for updating to a remote endpoint.
- Calculate and maintain aggregates, sorting order and paging. Provide a query mechanism via filter expressions. In other words, the DataSource fully supports CRUD (Create, Read, Update, Destroy) data operations, and provides both client-side and server-side support for sorting, paging, filtering, grouping, and aggregates.
Advantages
- It will automatically handle sorting, paging, filtering, grouping, and aggregates.
- Web Socket, Web API and SignalR call is supported.
- We can also use this with other control also like JqueryUI.
- It support the XML, Json and Javascript Array.
- We can also add/set hierarchical data into HierarchicalDataSource.