Hi
I want to have cascading drop down lists that are specified in different editor files and was wondering whether this was possible? So far I have not been able to get it working.
--- ItemTypeEditor.cshtml
-- ParentItemEditor.cshtml
Can anyone see anything wrong with the above? Or determine whether a cascade is even possible across two different files?
I want to have cascading drop down lists that are specified in different editor files and was wondering whether this was possible? So far I have not been able to get it working.
--- ItemTypeEditor.cshtml
@using Kendo.Mvc.UI;@model DataModels.Picking.PickingAssignmentItemType@(Html.Kendo().DropDownList() .Name("Type") .DataTextField("Description") .DataValueField("TypeCode") .DataSource(source => source .Read("GetAssignmentTypes", "Picking") .ServerFiltering(true) ))-- ParentItemEditor.cshtml
@using Kendo.Mvc.UI;@model DataModels.Picking.PickingAssignmentItemViewModel@(Html.Kendo().DropDownList() .Name("ParentItem") .DataTextField("ItemId") .DataValueField("ItemId") .DataSource(source => { source.Read(read => { read.Action("GetAssignmentKits", "Picking") .Data("filterTypes"); }) .ServerFiltering(true); }) .CascadeFrom("Type")) <script> function filterTypes() { return { Type: $("#Type").val() }; }</script>