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

Grid doesn't display data after updating model via database first method

2 Answers 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eamonn
Top achievements
Rank 1
Eamonn asked on 31 Jan 2014, 12:41 PM
Hello,

I am new to MVC and trying out the Kendo UI has given me a lot of help. I have been working with grids, simple one table editable grid and it was working fine. I then planned to move onto to Master-Detail grids but when I updated the models in the MVC solution by right clicking in the models diagram, choosing 'Update Model from database option' and adding extra tables that are in the database (which all seems to work OK) , no data appears in my simple editable grid anymore when I run it.

The outline of the grid appears but no data. The table(Schools) that I was referencing didn't change except for a 1 to many relationship has been added as that is a relationship it has with one of the other tables (SupportTickets) that was added during the Update model from database process. None of the code in the HomeController or View was changed.

Is there some part of the process that I am missing?

Thanks in advance for any advice offered.

Eamonn

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 04 Feb 2014, 08:19 AM
Hi Eamonn,

I suspect that adding the reference to the other table causes the error during data serialization (A circular reference was detected while serializing an object of type). You can verify this by inspecting the response from the server via the browser's tools. Please refer to this help article for more details on how to resolve it.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Eamonn
Top achievements
Rank 1
answered on 18 Feb 2014, 08:55 AM
Hi Rosen,

Apologies for delay in getting back, I got sidetracked with other work,. That help article sorted out my issue.

Thanks,
Eamonn
Tags
Grid
Asked by
Eamonn
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Eamonn
Top achievements
Rank 1
Share this question
or