Detecting pending changes, or "dirty cells"

2 posts, 0 answers
  1. MikeWiese
    MikeWiese avatar
    43 posts
    Member since:
    Apr 2007

    Posted 19 Sep 2016 Link to this post

    We display a kendo spreadsheet in a modal kendo window.  A common usage pattern among our users is to make changes to a cell, then click an OK button to close the window.  Their expectation is that their changes will be saved. But of course they are not, because they are still "pending changes". For example, the user edits are not serialised in the toJSON() method.

    Is is possible to expose a property or method that would allow developers to detect and commit such pending changes? Some of us may simply want to detect pending changes, so that we can create our own logic to prompt the user to commit or roll back the pending change



    Mike Wiese

  2. Stefan
    Stefan avatar
    1257 posts

    Posted 21 Sep 2016 Link to this post

    Hello Mike,

    I can suggest using the hasChanges method of the Spreadsheets dataSource instance. This will check if changes are made, which are not synced (sent to the server but the response is not received):

    This can be used to check if the changes are made and if not to prevent the window from closing and then manually closing it when the changes are saved:

    I hope this will help you to achieve the desired result.

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