New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ASP.NET MVC Grid ForeignKey Column Binding

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
foreignkeycolumnbinding.cshtml
ForeignKeyColumnBindingController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The ForeignKey column functionality of the Telerik UI for ASP.NET MVC Grid component is primarily used for matching the value of a bound property to a desired text field from a collection that is external for the Data Grid. The ForeignKey column approach follows the convention of the SQL ForeignKey functionality that is used for linking two tables based on a foreign key.

This demo shows how to implement a foreign key column which fetches its values from a DataSource in the ASP.NET MVC Data Grid which hosts the Telerik UI for ASP.NET MVC DropDownList component as an editor for modifying the data.

For more information about the ForeignKey column capabilities, refer to the official Telerik UI for ASP.NET MVC Data Grid product documentation on the available column settings.

Additional Apps

This Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in the ThemeBuilder.

Support & Learning Resources

Additional Resources