Transport update function receiving old values?

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    38 posts
    Member since:
    Mar 2014

    Posted 12 Jun 2015 Link to this post

    When my transport update function executes the data is the old values, not the updated ones. Am I missing something obvious here? Working demo at: http://dojo.telerik.com/EFInu

    The console debug message shows the current values, not the new values. I've attached a clip of it as well.

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 16 Jun 2015 Link to this post

    Hello Ryan,

    The behavior you have described is caused by calling the saveChanges inside the save event of the Grid. As you may know the save event is triggered before the model is changed, thus calling saveChanges from within the event handler will push model "old" state.

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top