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

Self-Referential Foreign Key field in Grid

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 11 Jul 2013, 07:12 PM
I have a grid for a model Departments. Departments has a foreign key field ParentDepartmentKey. The foreign key field correctly generates a dropdown list with Departmens listed. However, if you add a new department, it is added to the grid, but the dropdown in the foreign key field is not updated and does not update.

Is it possible to have the foreign key field update when an item is added to the grid?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 15 Jul 2013, 08:33 AM
Hi Nicholas,

 
From the provided information it seems that you either bind the ForeignKeyColumn to a nullable field from the model or you never defined default value for current field. Please check the possible solutions for both cases:


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