Detect changes

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

    Posted 25 Jul Link to this post

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

    Posted 27 Jul 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:

    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.
  3. Kendo UI is VS 2017 Ready
Back to Top