Detect changes

2 posts, 0 answers
  1. Sunil
    Sunil avatar
    2 posts
    Member since:
    Jul 2015

    Posted 25 Jul 2016 Link to this post

    1. We are using Kendo read-only grid.

    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.

    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.
  2. Dimiter Topalov
    Dimiter Topalov avatar
    633 posts

    Posted 27 Jul 2016 Link to this post

    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:

    I hope this helps.

    Dimiter Topalov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top