This is a migrated thread and some comments may be shown as answers.
Telerik ASP.NET MVC Grid Foreign Key Refresh
2 Answers 56 Views
This is a migrated thread and some comments may be shown as answers.
Kaloyan
Top achievements
Rank 1
Kaloyan asked on 12 Oct 2017, 12:59 PM

Hello guys!

I have a little question but before posting source code I will just try to explaion. Basically I have a Grid with a foreign key. Everything works fine but on the same screen I have a dialog that updates the table which holds the foreing key values. 

Let's say I have a Group with Id and Name. The Ids are loaded in the Grid and everything is fine. I can change the Names from outside the gird but when I refresh the Grid the group names are not updated. 

I use $("#Grid").data("kendoGrid").dataSource.read(); to refresh the Grid. The other columns are refreshed, I see the loading indicator but the foreign key is not updated. 

I would be grateful if anyone could help.

Regards,

Kaloyan Manev

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Oct 2017, 07:04 AM
Hello, Kaloyan,

As this is a specific scenario I can suggest checking the following question on StackOverflow as it contains a similar scenario:

https://stackoverflow.com/questions/23248363/kendoui-grid-foreign-key-not-refreshing

In general, the Grid read will update its data, but the foreign key column is connected probably to the viewData, so the view data in the specific view.

If more information is needed, please provide a fully runnable example and I will gladly assist further.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Kaloyan
Top achievements
Rank 1
answered on 16 Oct 2017, 10:43 AM
I have already fixed the issue. I am using custom popup screen without using FKs and the refresh is now working. Thanks :)
Tags
Grid
Asked by
Kaloyan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Kaloyan
Top achievements
Rank 1
Share this question
or