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

KendoUI chart - how do I show animation while loading data?

I have a KendoUI chart generated with JavaScript. Is there a way to clear the plotArea with a command? For the purpose of showing a "Loading..." image while waiting for a DataSource to read remote data. Thanks
Katya S
  • 1,321
  • 3
  • 17
  • 31
9
votes
2 answers

Kendo UI: One data source, two widgets

UPDATE: Here is a link to reproduce the problem RELATED: This is another question of mine where similar problems are happening with Kendo UI Map, maybe it could help someone figure this one out! It has one failing and one working version. I use…
damd
  • 6,116
  • 7
  • 48
  • 77
9
votes
3 answers

Kendo grid - get current editing row

How do you get the current row that's been edited even when it's not selected? I have a batch enabled Kendo grid that is navigatable. My goal is to manually edit data in a column using the dataItem.set() method. However, when you add a row it does…
SharkTiles
  • 585
  • 3
  • 9
  • 22
7
votes
2 answers

how to manually set column value in kendo grid

I was able to set the remark on console but I have no idea how to set the remark value into the grid once the user save the changes. is there anyway to set value into kendo grid manually? example output |Remark |User Name|Phone…
7
votes
1 answer

Kendo UI Angular JS and AutoComplete with a service

I'm making an Angular App and I'm starting to use some of the Kendo UI controls. I'm having some issues wiring up the AutoComplete control. I would like to use a factory that will return the list of "auto complete" values from my database. I have…
pehaada
  • 513
  • 2
  • 8
  • 20
7
votes
3 answers

Creating a kendo dropdown list inside a kendo template

That's my small example of a code. Is there a way to create a drop down list on the div tag, since that div is not actually a DOM object, and therefore I…
Mefhisto1
  • 2,188
  • 7
  • 34
  • 73
7
votes
1 answer

_pristine vs _pristineData in kendo dataSource

In my understanding kendo dataSource have many _properties. But im unclear about their unique characteristics. can anybody explain difference among these kendo dataSource properties. 1. _pristine 2. _pristineData 3. _data 4. _view 5.…
ManirajSS
  • 2,295
  • 5
  • 26
  • 50
5
votes
1 answer

How to ask for confirmation before update data using KendoUI Grid with ODATA type?

I need to ask for a confirmation (a confirm dialog), when i click the update button of the kendo grid edit popup form. The problem is that using ODATA, i specify the kendoGridConfiguration.dataSource.transport.options.update.url, and i cant…
5
votes
1 answer

How to Pass dataItem to a js function on a KendoGrid cell custom click

I have a KendoGrid that have a column like: { title: "Column1", template: click here', }, ..first this code doesnt work. Im trying to pass the whole "data" (the data for the current…
Erick Lanford Xenes
  • 1,467
  • 2
  • 20
  • 34
5
votes
1 answer

Interceptor for Authorization headers using Kendo UI datasource

I am using webapi and restrict web api's to authenticate by token, so to populate datasource I use request headers in DataSource. var abcDatasource = new kendo.data.DataSource({ transport: { read: { url: '/api/exampledata', …
adnan
  • 1,429
  • 1
  • 16
  • 26
4
votes
1 answer

How to get field type in Kendoui?

Is there any method like that dataSource.getFieldType(field) in datasource: var dataSource = new kendo.data.DataSource({ // somethings here, schema : { model : { post_id : {type: "number" }, post_title :…
Alexander
  • 1,720
  • 4
  • 22
  • 40
4
votes
3 answers

How to use URLs like '/update/:id' as KendoUI datasource?

I read the documentation but found nothing related to setting parameters in dataSource urls. Is it possible to achieve that? Thx in advance.
Isilmë O.
  • 1,668
  • 3
  • 23
  • 35
4
votes
5 answers

Getting checked rows from kendo grid

I have a kendo grid with a checked box column .I have been trying to get the dataitem rows when the corresponding check boxes are checked.On click of a button , I need to get only the checked rows in JSon .Here is a JSfiddle I have been playing…
4
votes
3 answers

Is it possible to get the DataSourceRequest from KendoUI DataSource object?

When DataSource object (belonging to Kendo UI framework) reads data from server it sends parameters in a structure that is often called DataSourceRequest on server side (although officialy there is no such class). I am looking for a way to get this…
Rummy
  • 129
  • 2
  • 8
4
votes
3 answers

Kendo UI Web Scheduler - Modifying resources dataSource dynamically

I'm trying to change the resources dataSource dynamically, but the changes I am making are not being applied to the Scheduler. I've created a scheduler like so: $("#scheduler").kendoScheduler ({ date: new Date(), startTime: new…
1
2 3
19 20