Bunun için ilgili View klasörü altında -> EditorTemplates -> GridForeignKey.cshtml şeklinde editor şablonu olmalıdır. Yoksa otomatik oluşturulmamaktadır.
GridForeignKey.cshtml içeriği şu şekildedir:
@using Telerik.Web.Mvc.UI
@(Html.Telerik().DropDownList()
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(""))
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
)
Kaynaklar:
Foreign Key Drop Downs on Telerik MVC Grid
http://anyrest.wordpress.com/2012/01/13/foreign-key-drop-downs-on-telerik-mvc-grid/
http://www.telerik.com/community/forums/aspnet-ajax/grid/asp-net-mvc-razor-grid-with-editable-foreign-key-dropdown-column.aspx
http://www.telerik.com/community/forums/aspnet-mvc/grid/foreign-key-column-editor-help.aspx
http://www.telerik.com/community/forums/aspnet-mvc/general/grid-do-not-render-foreignkey-columns.aspx
C#, .NET, .Net Core
ASP.NET MVC, ASP.NET Web Forms, ASP.NET Core
HTML 5, CSS 3, Javascript, jQuery, Bootstrap
Entity Framework, NHibernate, Dapper
Sql Server, MySql, Oracle
Windows Server, Ubuntu, Debian, Pardus
Xamarin Forms, Android Studio
--- The future of the open web platform is looking very bright!
--- .NET is a free, cross-platform, open source developer platform for building any app.
Google Analytics İzleme
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder