Hi all!
I have a problem. I explain my situation: I have a C# class that generates a user control (without the .aspx file). In the page I have a RadComboBox control and I need to fire an event after the text or the selected item have been changed. The javascript is external.
In the Page_Load the code that defines the event is (the code is the same also for OnClientTextChanged) :
this._cmbFilter.OnClientSelectedIndexChanged = "ComboTextChanged";
The javascript code is at the moment really simple, but still doesn't work.
function ComboTextChanged(sender){
alert("Sender = " + sender + " Id = " + sender.id);
}
What I see when I execute the page is Sender = object, Id = null.
Is there any way to solve this problem? I have also tried passing arguments to the javascript, or with the $find("") function.
Thanks in advance for any help!
Dario Zanelli
I have a problem. I explain my situation: I have a C# class that generates a user control (without the .aspx file). In the page I have a RadComboBox control and I need to fire an event after the text or the selected item have been changed. The javascript is external.
In the Page_Load the code that defines the event is (the code is the same also for OnClientTextChanged) :
this._cmbFilter.OnClientSelectedIndexChanged = "ComboTextChanged";
The javascript code is at the moment really simple, but still doesn't work.
function ComboTextChanged(sender){
alert("Sender = " + sender + " Id = " + sender.id);
}
What I see when I execute the page is Sender = object, Id = null.
Is there any way to solve this problem? I have also tried passing arguments to the javascript, or with the $find("") function.
Thanks in advance for any help!
Dario Zanelli