Hi,
I have a master detail grid. The detail grid has a column which needs to be populated with a dropdown that contains values which change depending on the master row selected.
I tried using an editor template as shown below, but the data does not get populated in the drop down:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyProject.Models.ProductParentHierViewModel>" %>
<%:Html.Kendo().DropDownListFor(d => d)
.Name("ProductParentHier")
.OptionLabel("Select")
.DataValueField("ProductID")
.DataTextField("ProductHier")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetProductHier", "Product", new { ProductVersionID = "#=ProductParentVersion.ProductParentID#" });
});
})
%>
How would I achieve this?
Thanks,
Sherly
I have a master detail grid. The detail grid has a column which needs to be populated with a dropdown that contains values which change depending on the master row selected.
I tried using an editor template as shown below, but the data does not get populated in the drop down:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyProject.Models.ProductParentHierViewModel>" %>
<%:Html.Kendo().DropDownListFor(d => d)
.Name("ProductParentHier")
.OptionLabel("Select")
.DataValueField("ProductID")
.DataTextField("ProductHier")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetProductHier", "Product", new { ProductVersionID = "#=ProductParentVersion.ProductParentID#" });
});
})
%>
How would I achieve this?
Thanks,
Sherly