Telerik ASP.NET MVC Grid Foreign Key Refresh

3 posts, 0 answers
  1. Kaloyan
    Kaloyan avatar
    5 posts
    Member since:
    Dec 2014

    Posted 12 Oct 2017 Link to this post

    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"); 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.


    Kaloyan Manev

  2. Stefan
    Stefan avatar
    2880 posts

    Posted 16 Oct 2017 Link to this post

    Hello, Kaloyan,

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

    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.

    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.
  3. Kaloyan
    Kaloyan avatar
    5 posts
    Member since:
    Dec 2014

    Posted 16 Oct 2017 in reply to Stefan Link to this post

    I have already fixed the issue. I am using custom popup screen without using FKs and the refresh is now working. Thanks :)
Back to Top