Questions tagged [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.

Useful links


Related tags

299 questions
2
votes
1 answer

Kendo datasource change read url on request start

I am currently doing this to change the read url dynamically on my kendo datasource. The datasource is used for a kendoautocomplete text box and for each key typed the list of suggestions are fetched through a get request. requestStart: function…
2
votes
2 answers

Kendo UI grid data-source triggers extra ajax request on filter

I'm using Kendo UI grid in my project to build a orders list, it has a data-source that loads all the orders immediately with an ajax request and it works on them (filtering, ordering, paging) locally with no additional requests. This is the code…
mck89
  • 18,918
  • 16
  • 89
  • 106
2
votes
1 answer

Kendo datasource not triggering error handler for redirect response

I have some Kendo MVC grids bound to remote Json controller actions which work very well. The MVC application uses a custom AuthorizeAttribute for authorizing access to the controller actions and when a user is not authenticated it replies with a…
Mihai Caracostea
  • 8,336
  • 4
  • 27
  • 46
2
votes
2 answers

Add custom command to Kendo UI dynamic datasource / grid

I'm using Kendo UI javascript framework in an ASP.NET MVC application. I have to load dynamic data, provided by my server, in my Kendo UI Grid, so I don't want to use datasource schema and columns definition, in no case. An example of my data is :…
Yordan Asenov
  • 315
  • 1
  • 7
  • 21
2
votes
1 answer

Kendo UI - Datasource. pass parameters to server using mvvm

I'm having trouble using the datasource the right way. My Goal: create external widget for filtering kendo grid (server side filter). I managed to make it work, but it's kind of a workaround and I am looking for the corrent approach The filterGrid…
Avi
  • 1,924
  • 3
  • 17
  • 31
2
votes
1 answer

Difference between Kendo dataSource view and data methods

I've inherited a project that uses Kendo, and I'm still learning its basics. A feature I'm working on entails getting JSON data from the server and using it to display something in a Web page. For this I'll use a dataSource, call its read function…
user1886876
2
votes
3 answers

Is it possible to copy a grid datasource to a new datasource, a new datasource that loads all data?

Is it possible to copy a grid datasource to a new datasource, a new datasource that loads all data? For example I have a kendo grid which has a page size of 10, how would I copy it into a new datasource which will load all the data and ignore the…
ECie
  • 1,265
  • 4
  • 21
  • 50
2
votes
2 answers

Custom Sort on Kendo Grid that can be Triggered Programmatically

I have a kendo grid and want certain rows to stay pinned at the top of the grid after sorting. I can achieve this by specifying a custom sort on every column. For example: