Trigger events on change of Support Group drop down value
Similar to this https://community.cireson.com/discussion/2216/ and https://community.cireson.com/discussion/3214/
I want to trigger some js when the Support Group field is updated.
My problem is that the referencing the combobox which doesn't appear to have an id.
First try:
pageForm.viewModel.SupportGroup.bind("change", function(){do stuff})
however unlike the "RequestedWorkItem" this is the data for the combo box rather than the input of the drop down itself and so nothing triggers
Second Try:
$("label[for="SupportGroup]").parent().find("input:first").bind("change",function(){do stuff})
but this doesn't work either.
Any guidance most gratefully recieved.
Answers
Try this:
If (on a change request) I have:
$("[data-role='SupportGroup'] input[data-role='combobox']").data('kendoComboBox').bind("Change", function(){alert("updated")});
I would expect a alert on changing the drop down, but this is not happening.
This works
The next challenge will be getting the timing right for custom.js to run that code on the page but only once the combobox has been created. Good luck.
Geoff
Getting closer. The event triggers if I put the cursor in the drop down and hit enter after changing the drop down value, rather than just when the drop down value changes.