How can I add an event handler via JavaScript in pageLoad to handle the keyPress event of a RadComboBox?
We create a series of ComboBox controls dynamically based on user preferences. We want to be able to accept user keystrokes and when they press the Enter key, fire the rrKeyPress event.
We're unable to define this in our code due to business constraints; it *MUST* be in JavaScript on pageLoad.
I've tried adding it using the code below, but it didn't work as expected:
// Loop through controls and attach
var
comboBox = document.getElementById(
'RadComboBox1'
);
comboBox.add_valueChanged(rrKeyPress);
Any suggestions?