This is a migrated thread and some comments may be shown as answers.

Transport update function receiving old values?

1 Answer 75 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 12 Jun 2015, 06:10 PM

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.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 16 Jun 2015, 03:32 PM

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!
 
Tags
Data Source
Asked by
Ryan
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or