Hello community,
I am searching for a way to remove a specific built in eventhandler from an Ajax Control like the ComboBox.
I've created an own WebControl which adds a AjaxControlToolkit.ComboBox to it.
I then configure my control clientside with some jQuery code inside of an MyComboBox.js file for my control class (just like the controls inside the AjaxControlToolkit are created).
Let's say I want to remove the jQuery eventhandler onBlur() for the nested textBox control because I want to rewrite it on my own.
As far as I could discover it works well for whole controls built into the ComboBox.
For example:
$clearHandlers(this._myComboBox.get_textBoxControl());
works fine and removes all handlers from the textBox control built into the Ajax ComboBox.
But what if I want to remove only one single eventhandler?
I already tried:
$removeHandler(this._myComboBox.get_textBoxControl(), 'blur', this._myComboBox._textBoxBlurHandler);$removeHandler(this._myComboBox.get_textBoxControl(), 'blur', this._myComboBox._onTextBoxBlur);
this._myComboBox.get_events().removeHandler('blur', this._myComboBox._textBoxBlurHandler);But nothing worked yet.
Has anyone done that before?
Is it possible at all?
Many thanks for your help.
Cheers