hi,
im using kendo ui and im having a problem. thee is a combo box that hold some text values, and i hv a kendo grid that has many columns. one of the columns has editor template and that editor template has a combobox . that combobox has to be rebinded on the index change of the outer combo box but it just binds on the first time and is not updated when the index of the outer combobox is changed. any help wud be appreciated. can provide more details if need. im pretty new to the mvc.
this is my editortemplate
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%=
Html.Kendo().ComboBoxFor(m => m)
.BindTo((System.Collections.IEnumerable)ViewData["Prd_Groups"])
.DataValueField("PRD_GROUP")
.DataTextField("PRD_GROUP")
.Name("PRD_GROUP")
//use the data-skip attribute to prevent adding the default value binding and add the data-bind attribute for the custom binder
.DataSource(dataSource => dataSource
.Read(read => read.Action("loadprdgrp", "MarketMaster"))
)
.HtmlAttributes(new { data_skip = "true", data_bind = "nullableValue: PRD_GROUP" })
%>
im using kendo ui and im having a problem. thee is a combo box that hold some text values, and i hv a kendo grid that has many columns. one of the columns has editor template and that editor template has a combobox . that combobox has to be rebinded on the index change of the outer combo box but it just binds on the first time and is not updated when the index of the outer combobox is changed. any help wud be appreciated. can provide more details if need. im pretty new to the mvc.
this is my editortemplate
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%=
Html.Kendo().ComboBoxFor(m => m)
.BindTo((System.Collections.IEnumerable)ViewData["Prd_Groups"])
.DataValueField("PRD_GROUP")
.DataTextField("PRD_GROUP")
.Name("PRD_GROUP")
//use the data-skip attribute to prevent adding the default value binding and add the data-bind attribute for the custom binder
.DataSource(dataSource => dataSource
.Read(read => read.Action("loadprdgrp", "MarketMaster"))
)
.HtmlAttributes(new { data_skip = "true", data_bind = "nullableValue: PRD_GROUP" })
%>