<script type=text/javascript> function Cascading(parentddl, childddl, controllername, actionname, isaddempty) { $('#'+parentddl).val().live('change', function () { var idModel = $(this).val().toString(); $.getJSON("/" + controllername + "/" + actionname, { id: idModel }, function (ddlData) { var selectvalue = $('#'+childddl); selectvalue.empty(); var ds = selectvalue.data().kendoDropDownList.dataSource; selectvalue.data(kendoDropDownList").dataSource.data([]); selectvalue.val().data("kendoDropDownList").text(); $.each(ddlData, function (index, itemData) { selectvalue.data(kendoDropDownList").dataSource.add({ text: itemData.Text, value: itemData.Value }); }); }); }); } </script>
selectvalue.data(kendoDropDownList").dataSource.data([]);
selectvalue.data(kendoDropDownList").dataSource.add({ text: itemData.Text, value: itemData.Value });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)