This question is locked. New answers and comments are not allowed.
Hi,
I am not able to get dropdowns in the Pop up when i set the Grid's editing mode to Pop up.
Also the "Model" in the partial view DisplayTemplates\Industry.ascx is throwing object not set to reference exception.
DisplayTemplate\Industry.ascx :
I am not able to get dropdowns in the Pop up when i set the Grid's editing mode to Pop up.
Also the "Model" in the partial view DisplayTemplates\Industry.ascx is throwing object not set to reference exception.
DisplayTemplate\Industry.ascx :
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<
WebApp1.Models.IndustryType
>" %>
<%= Html.Encode(Model.IndustryTypeName) %>
PFB the partial view of EditorTemplates\Industry.ascx:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<
IndustryType
>" %>
<%= Html.Telerik().DropDownList()
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
.BindTo(new SelectList((IEnumerable)ViewData["industry"], "IndustryTypeID", "IndustryTypeName", Model == null ? "" : Model.IndustryTypeID.ToString()))
%>
But the same code works perfectly fine when the editing mode of the grid is set to "InLine".
Any help??