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

problem with mvc code library sample : Entity Framework Code First CRUD

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 29 Dec 2012, 06:59 PM
I tried the unmodified sample from :

http://www.kendoui.com/code-library/mvc/grid/entity-framework-code-first-crud.aspx

when the example is started, there are 4 customers:
customer1
customer2
customer3
customer4

I press the edit button on the 4th row, then change Name 'customer 4' to 'customer 5' and press 'update'
now I see :
customer1
customer2
customer3
customer1

so all cells in the last row are replaced with all the cells from the first row

if I refresh the browser (IE9) then I see the correct data :
customer1
customer2
customer3
customer5

Regards,

Marcel



1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 01 Jan 2013, 01:59 PM
Hello Marcel,

Thank you for notifying us about this issue. Actually the response from the Update action should be as follows (just like in this demo):

return Json(ModelState.ToDataSourceResult());

I will update the CodeLibrary as well.

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