I have a Kendo DropDownList with the id SapProject_Id, when user changes its value I need to fire onChange, but this needs to be done in jquery not when I define Kendo DropDownList.
I have tried following code which is not working:
var sapProject = $("#SapProject_Id").data("kendoDropDownList");
sapProject.change = onChange;
function onChange() {
alert(1);
}
The correct way of doing this is:
var sapProject = $("#SapProject_Id").data("kendoDropDownList").bind("change", onChange);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With