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

[Solved] Edited rows losing values when adding new row

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
TriZetto
Top achievements
Rank 1
TriZetto asked on 14 Oct 2009, 01:10 PM
Hello,
I have a grid with all rows editable when it loads using InPlace edit mode. If I edit a value in a field on one of these rows, then click insert to add a new row to the grid, the values I entered in the row that was already part of the grid are lost.

Is there a way to avoid this?

The edits and the newly added row need to be saved at one time, I cannot do partial saves to my data source.
Thanks
-marcos

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 14 Oct 2009, 02:32 PM
Hello Marcos,

The behavior you observed is due to the fact that the grid gets rebound when you attempt to insert a new item. Since you have not updated the underlying source with the entered values, the old values are taken from there and the editors are populated with them.

If you want to keep the new values before the batch update takes place, you will need to implement that with you custom server or javascript logic.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
TriZetto
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or