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

[Solved] Has the Grid Foreign key issue been improved?

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Max
Top achievements
Rank 1
Max asked on 08 Dec 2011, 01:50 AM
Hello all,

I may be missing something but from all posts I read it seems that there is no easy way to bind a listbox into a field with a foreign key; and when you edit the Grid you display the description of the field but you actually update the foreign key on the table. For instance:

Product table:
ProductId
ProductName
CategoryId <=== need to bind a listbox with ID, CategoryName

Category table:
CategoryId
CategoryName

The sample below does not seem to fit my scenarion:http://demos.telerik.com/aspnet-mvc/razor/grid/clientedittemplates

Any ideas? thank you

1 Answer, 1 is accepted

Sort by
0
Max
Top achievements
Rank 1
answered on 08 Dec 2011, 04:16 PM
nevermind....there is a new method: http://demos.telerik.com/aspnet-mvc/razor/grid/foreignkeycolumn
thanks!
Tags
Grid
Asked by
Max
Top achievements
Rank 1
Answers by
Max
Top achievements
Rank 1
Share this question
or