This question is locked. New answers and comments are not allowed.
Hello...
Following this article
http://www.telerik.com/community/code-library/aspnet-mvc/grid/custom-popup-editor-form.aspx
I tried to create an Object EditorTemplate for my Grid for Ajax Editing.
The Grid does show the popup with the EditorTemplate, but all the values are null.
Actually a set a step on in the cshtml file and it triggers only once and the model passed in a brand new instance of the object.
i am attaching my cshtml here.
thanks
Following this article
http://www.telerik.com/community/code-library/aspnet-mvc/grid/custom-popup-editor-form.aspx
I tried to create an Object EditorTemplate for my Grid for Ajax Editing.
The Grid does show the popup with the EditorTemplate, but all the values are null.
Actually a set a step on in the cshtml file and it triggers only once and the model passed in a brand new instance of the object.
i am attaching my cshtml here.
thanks
@model object@{ if (Model == null) { @ViewData.ModelMetadata.NullDisplayText } else if (ViewData.TemplateInfo.TemplateDepth > 1) { @ViewData.ModelMetadata.SimpleDisplayText } else { using (Html.BeginIFGSection(false, "")) { foreach (var prop in ViewData.ModelMetadata.Properties.Where(x => x.ShowForDisplay && !ViewData.TemplateInfo.Visited(x))) { if (prop.HideSurroundingHtml) { @Html.Display(prop.PropertyName) } else { @String.Format("{0} | {1} -> ",prop.GetDisplayName(), Html.Display(prop.PropertyName)) } } } }}