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

Cancelling inline edit changes value of row to the first item in grid

2 Answers 245 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaesoon
Top achievements
Rank 1
Jaesoon asked on 18 Dec 2015, 11:46 PM

I have a grid which has inline editing with one field visible (a date field).

 

For some reason when I press edit on a row and then cancel (on any row apart from the top row) the whole row turns into the value of the top item.

No data is saved to the database as refreshing the grid shows the correct values again.

 

I've put in an event handler to see what's being happening when cancel is pressed and it seems by the time the cancel event is hit, the object that gets returned is the first item of the grid.

 

How can I stop this behaviour from happening?

2 Answers, 1 is accepted

Sort by
0
Jaesoon
Top achievements
Rank 1
answered on 19 Dec 2015, 12:02 AM

I've figured out what the problem was,

 

I was binding to the wrong model id in the datasource and changing that to the correct value has fixed my problem.

0
Dimiter Madjarov
Telerik team
answered on 22 Dec 2015, 12:14 PM

Hello Jaesoon,

Thanks for the update. We are glad the issue is resolved.

Have a happy holidays!

Regards,
Dimiter Madjarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Jaesoon
Top achievements
Rank 1
Answers by
Jaesoon
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Share this question
or