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

Custom Editor, NOT CHANGE THE MODEL

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 25 Sep 2013, 08:13 PM
My Exemple: http://jsfiddle.net/rhvieira/FkP8z/

To show the error you need follow steps.
 1- Click in Edit button
2 - click in the pencil in the first column
3 - type a value into html control and close the window.
4 - click in update button 

Now occurs the error, in this step I try update the model, but when i did it the visual has been changed but the internal data is not marked as changed, then when 
I send all informations to the server the record is not updated.

When I do the same steps in new record all works are done or when change the first and other column and save this work too.

Best Regards,
Vieira



1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 27 Sep 2013, 04:10 PM
Hello Jean,

In this scenario I recommend using MVVM to update the edited model, not custom written code.
I updated your fiddle to demonstrate the suggested approach. Please check it:
Note that I also updated the KendoUI and jQuery versions of the sample.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jean
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or