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
0
votes
0 answers

Insert in DB Issue, using OData and Kendo Grid

I'm using a Kendo Grid with a datasource using type Odata. I have troubles creating a new row in the database from the datasource. This is my datasource code: var ds = new kendo.data.DataSource({ type: "odata", transport: { …
MaHaZaeL
  • 59
  • 10
0
votes
2 answers

binding collection sent from a kendo datasource to webapi parameter fails

I'm trying to create a grid with batch delete, and I am having trouble on my back-end (asp.NET WebApi). I have set up the following data source: var QueueMessages = { transport: { read: { // omitted }, …
jajdoo
  • 516
  • 1
  • 9
  • 21
0
votes
1 answer

Angular-Kendo grid - cancel editing breaks entire grid

I have a grid which works normally while adding, removing, deleting rows. Now, troubles come when I try to add row and then I click cancel. After that, my entire grid element loses .data('kendoGrid') (it returns undefined after that). I don't have…
Slaven Tomac
  • 1,552
  • 2
  • 26
  • 38
0
votes
1 answer

Duplicate Kendo grid is creating every time

var showEmps = function (did) { $("#myGrid").kendoGrid({ sortable: true, pageable: true, scrollable: true, columnMenu: true, …
jestges
  • 3,686
  • 24
  • 59
  • 95
0
votes
0 answers

Kendo datasource adds itself an invalid aggregates

I recently updated to the most recent version of kendo (v2014.2.716). And now, I get errors when receiving callbacks of grid datasources. It seems that the datasource has an aggregate, but the weird thing is, the aggregate it self is the function to…
Frank
  • 767
  • 5
  • 17
0
votes
0 answers

Can't update data from Kendo DataSource

I have a Kendo ListView. This is populated with data from a Kendo DataSource. This is my ListView: $("#lvCodeLeft").kendoListView({ dataSource: dsCodeLeft, template: "
#:code# #:heading#
", selectable:…
Wessel
  • 1
0
votes
1 answer

Uncaught object error Kendo grid read issue

I'm new with Kendo. I was trying to create a Kendo grid with data from a remote link My Code: var dataSource = new kendo.data.DataSource({ transport: { read: { url: "http://www.mocky.io/v2/53e1cd17aaabaeaa0bc9a8f9", …
Okky
  • 10,338
  • 15
  • 75
  • 122
0
votes
1 answer

kendo ui datasource filter "in"

How can i filter kendo datasource with operator "in"? Example: var original_data = [ {"group": [1, 2], "name": "Coca Cola"}, {"group": [1, 3], "name": "Pizza"} ]; function filter_articles(original_data, group) { return new…
Mirza Delic
  • 4,119
  • 12
  • 55
  • 86
0
votes
1 answer

AngularJS and KendoUI Grid DataSource using functions for CRUD ops

I have a master grid which is a list of applications. The detailrow contains a grid to allow for CRUD operations on roles for that application. I have Create, Read, Update, and Delete working for the master grid, but not for the detail grid. We…
RebelScum
  • 549
  • 2
  • 5
  • 19
0
votes
2 answers

Kendo UI Grid shows no data in empty Grid

I am trying to fill a kendoUI Grid with data being dynamically calculated and pushed ito a variable. My grid is defined in a div tag, but when the function is called, only the grid is shown(with column names), no data. I think there is one small…
0
votes
1 answer

explictly setting filter for datasource KendoUI

I wanted to explictly set a filter for populating KendoUI list view , As per this link I did this, $(function () { var model = { items:ko.observableArray([]) } var dataSource = new…
user3014311
  • 438
  • 8
  • 27
0
votes
1 answer

Oracle chokes on date format sent from Kendo DataSource

I have a DataSource which passes Odata to Teiid and then on to Oracle. However, Oracle is choking when I try to pass it a date from a Kendo DataSource. I think it's because Oracle does not recognize a date string of the format it sends - for…
Slothario
  • 2,830
  • 3
  • 31
  • 47
0
votes
2 answers

best practice when need to change grid options/datasource

In an application I'm developing, i need to use the same space to display information from different sources with different formats in a grid according to what item was selected on a TreeView. i found two ways to achieve this: find the grid then…
jajdoo
  • 516
  • 1
  • 9
  • 21
0
votes
1 answer

webapi 2 key delta patch update

Using le framework here http://blog.longle.net/2014/03/04/harness-the-power-of-asp-net-mvc-web-api-odata-kendo-ui-requirejs-to-build-an-easy-maintainable-spa-for-the-net-developer-published/ and here Web API + OData - PATCH request 400 error how to…
0
votes
1 answer

Searching inside Kendo Hierarchical Datasource

I'm trying to search for an item inside a Kendo Hierarchical Datasource. It is needed to get the uid of that item and make that item node on Kendo Treeview gets programmatically selected. Here is the code. Forgive me for the sloppy…