This is a migrated thread and some comments may be shown as answers.

Detect changes

1 Answer 1156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 25 Jul 2016, 03:18 PM
1. We are using Kendo read-only grid.http://demos.telerik.com/kendo-ui/grid/index

2. The Kendo grid will fetch latest data from backend at a regular interval.

3. We want to notify the user what has changed between current and last fetch where inserting new rows, updating or deleting existing rows constitute change.

Questions
1. Does Kendo datasource provide a built-in api which we could leverage to track changes?.

2. If aforesaid requirement is not supported out of box then how best this can be achieved by using Kendo api, jQuery and raw javascript. A code snippet demonstrating the notion will be appreciated.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 27 Jul 2016, 11:51 AM
Hello Sunil,

The Kendo UI DataSource does not provide such functionality. You can implement some custom logic to get the initial dataSource items (for example in the dataBound event), and then the updated items, and compare the two collections:

http://dojo.telerik.com/AheFI

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Grid
Asked by
Sunil
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or