Kendo Grid - Update in cell edit data

4 posts, 0 answers
  1. Michael
    Michael avatar
    26 posts
    Member since:
    Jun 2015

    Posted 17 Oct 2017 Link to this post

    I have editable grid and wants to update (using Rest API) edited value in two cases 1) Call update function  in specific time interval 2)  Call update function when cell focus out.

    I have separate JavaScript function to update remote data.

    How to achieve this?

  2. Stefan
    Admin
    Stefan avatar
    2491 posts

    Posted 19 Oct 2017 Link to this post

    Hello, Michael,

    Regarding the requirements.

    1) The sync method can be called inside an interval function. Please have in mind that if there are any updates, the Grid will be re-rendered and this may lead to loss of information if the user is currently editing a cell when the interval update occurs:

    https://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-sync

    2) When the edited cell is focused out, this will trigger the save event, and on the save event the sync method can be called:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-save

    I hope this is helpful.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Michael
    Michael avatar
    26 posts
    Member since:
    Jun 2015

    Posted 24 Oct 2017 in reply to Stefan Link to this post

    Is there any events instead of sync method to update in specific time intervals?

    Save method doesn't have updated cell value at first time?

  4. Stefan
    Admin
    Stefan avatar
    2491 posts

    Posted 25 Oct 2017 Link to this post

    Hello, Michael,

    The saveChanges method can be called, but this will just call sync internally:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-saveChanges

    Could you please provide more details about the scenario where the cell value was not updated? Please have in mind that the cell will be updated only after the blur is fired, as this will notify the dataSource for the change.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top