Hi,
I have a straight forward implementation of cascading comboxes that doesn't seem to recognize the DataBound event. I have downloaded the latest keno js files, but nothing seems to work. When referencing the events I can see these actions available: Change, Close, Open and Select.
Here is the code:
Any help or thoughts would be appreciated.
Thank you,
Tad
I have a straight forward implementation of cascading comboxes that doesn't seem to recognize the DataBound event. I have downloaded the latest keno js files, but nothing seems to work. When referencing the events I can see these actions available: Change, Close, Open and Select.
Here is the code:
@(Html.Kendo().ComboBox() .Name("classes") .HighlightFirst(true) .Filter("contains") .Placeholder("Select Class...") .HtmlAttributes(new { style = "width: 300px;" }) .Suggest(true) .DataTextField("Name") .DataValueField("Id") .DataSource(source => source.Read(read => read.Action("GetClassList", "RCS"))).AutoBind(true)) @(Html.Kendo().ComboBox() .Name("vendorsforClass") .CascadeFrom("classes") .AutoBind(false) .Value("Select Vendor...") .HtmlAttributes(new { style = "width: 300px;" }) .DataTextField("Name") .DataValueField("Id") .Events(e => { e.DataBound("vendorForClassChangeEvent")}) .DataSource(source => { source.Read(read => { read.Action("GetVendorListByClass", "RCS").Data("filterProducts"); }).ServerFiltering(true); })) <script type="text/javascript"> function vendorForClassChangeEvent() { alert('here'); var combobox = $("#vendorsforClass").data("kendoComboBox"); combobox.open(); } function filterProducts() { return { classes: $("#classes").val() }; }Thank you,
Tad