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
3
votes
1 answer

Grid "dirty" flag not updating

I am having trouble manually setting/removing the "dirty flag" indicator on the Kendo grid control. I have extended the tutorial to preserve dirty indicators to include additional validation on the value field during the dataSource.change event: A…
Sandman
  • 2,247
  • 1
  • 13
  • 26
3
votes
1 answer

How to do server grouping using kendo grid ? What is the expected json format?

I'm trying to use server grouping in a grid. I'm not sure about the difference between "schema.groups" and "schema.data". I understand that i should use shema.data when data are not grouped, and schema.groups when data are grouped. I tryied to…
3
votes
4 answers

Persist additional dataSource.read parameters on paganation in Kendo data grid

I have a Kendo Grid that loads data via ajax with a call to server-side ASP.NET read method: public virtual JsonResult Read(DataSourceRequest request, string anotherParam) In my client-side JS, I trigger a read when a button is…
Jeremyx
  • 263
  • 1
  • 4
  • 10
3
votes
0 answers

Kendo UI MVVM - event with action "add" fired twice

In a viewmodel, I have an object called "curRec" whose properties are being bound to controls on the view. for instance, curRec.id, curRec.targetScore, etc. In addition, the curRec has a property of type array called "actions". I am rendering…
Bill
  • 2,026
  • 9
  • 55
  • 99
3
votes
1 answer

Kendo grid/datasource/grouping

Ok I have a grid setup binding to local data Here it is based on the examples in the kendo demos http://dojo.telerik.com/@marcushaslam/ovOKo I'm having problems when rows are deleted. They appear to be deleted but then the original rows re-appear…
mth
  • 433
  • 3
  • 7
3
votes
2 answers

Does kendo.data.dataSource store the old value somewhere?

Lets say that you have a kendo.data.DataSource. and you modify a row. and the row has become dirty. and now you want to compare if a specific column was changed before you save. Does kendo.data.DataSource store the old value locally somewhere? I…
ColacX
  • 3,928
  • 6
  • 34
  • 36
3
votes
2 answers

Kendo ComboBox - How to select option based on its text() rather than value()?

I am really struggling to select an option from my combo box based on the text rather than value. I have a combo box which has a datasource attached to it which are countries. These countries are stored in the database. I want the default country to…
Simmy Dhanda
  • 139
  • 1
  • 4
  • 13
3
votes
2 answers

What is best way to bind a Kendo UI dropdownlist to a ViewModel that is populated by a datasource?

I have a kendoUI dropdownlist that is in a template and is bound to a ViewModel, along with a span that is bound to the data item that is selected in the dropdownlist:

ssmith
  • 8,092
  • 6
  • 52
  • 93
3
votes
0 answers

Kendo-ui DataSource.create sends empty POST request

I'm trying to get my kendo-dataSource to upload a post once submitted by the user to a DB and all the posts are displayed using a kendoListView. When I am submitting the post request for the transport create method, I only receive null values in my…
2
votes
1 answer

Kendo: bind remote datesource to form

I am trying to understand how I can bind data from a remote datasource to a form, similar to this question, my ajax is returning the correct data. I have tried to implement the suggested solution but it doesn't appear to work and there are no…
Jaffa
  • 37
  • 6
2
votes
1 answer

Change serverFiltering option of Kendo dataSource after initialization

I'm building a Cordova app that makes extensive use of the offline support of Kendo dataSource. Most of the dataSources are configured to use serverFiltering, but this (obviously) doesn't work if the dataSource is offline. I'd like to change the…
Mat
  • 1,668
  • 4
  • 23
  • 40
2
votes
2 answers

Create new Kendo UI DataSource from existing one

I have two Kendo UI Combo-Boxes which uses same back-end data, but if I apply same Kendo UI DataSource to both of them, then filter done on one filters second one also (which I don't want to happen). Is there any way to apply data of existing…
yogi
  • 19,175
  • 13
  • 62
  • 92
2
votes
0 answers

kendo grid maximum call stack exceeded error

Issue I am trying to simply pass an array of objects into kendo.data.HierarchicalDataSource to which then I set that DataSource to the DataSource of my kendo grid. I keep receiving Maximum Call Stack Exceeded error when i try and do this and was…
Ben Clarke
  • 1,051
  • 4
  • 21
  • 47
2
votes
1 answer

Kendo UI Manually set cell dirty indicator

I am manually changing some things in a DataSource and setting the property .dirty = true, and it is behaving correctly on refresh, but not putting up the red dirty triangle in my grid. Is there a good way to do this manually other than actually…
naspinski
  • 34,020
  • 36
  • 111
  • 167
2
votes
1 answer

kendo ui grid query parameters

I am using kendo ui grid with server side paging, filtering and sorting. With C# WebAPI where all the grid parameters such as filters, sorts and currentpage and page size are sent in the url by kendo grid API and I have DataSourceRequest in my…
Shashi
  • 1,112
  • 2
  • 17
  • 32
1
2
3
19 20