This is a migrated thread and some comments may be shown as answers.

Dynamically Created RadCombo's Events not Fireing

2 Answers 43 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Keith Thorne
Top achievements
Rank 1
Keith Thorne asked on 31 Mar 2010, 11:57 PM
I create a rad combo as part of a composit control and it populates normally however when I try to assign eventhandlers client side, it appears the client side events are never raised. I can see the before and after event handlers in the debugger (see below) and they do get assigned. But, when I click on the radCombo and select an item neither of these event handlers executes. What am I missing or what more can I test to find the issue? Thanks!

// the control definition
MyControlNS.MyControl = function(element) {
    MyControlNS.MyControl.initializeBase(this, [element]);
    Sys.Application.add_load(Function.createDelegate(this, MyControlNS.MyControl.onLoaded));
}

// the onLoaded handler
MyControlNS.MyControl.onLoaded = function() {
    debugger;
    $find(this._myControlRadComboClientID).OnClientSelectedIndexChanged = this._tempItemChanged;
    $find(this._myControlRadComboClientID).OnClientDropDownOpening = function() { alert("hello world"); };
}

2 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 01 Apr 2010, 09:45 AM
Hi Keith Thorne,

You need to use the respective client-side methods for adding/removing events as shown in the bottom of this help article.

Best wishes,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Keith Thorne
Top achievements
Rank 1
answered on 01 Apr 2010, 02:06 PM
I should have guessed it was something like that. Worked great! Thanks.
Tags
ComboBox
Asked by
Keith Thorne
Top achievements
Rank 1
Answers by
Simon
Telerik team
Keith Thorne
Top achievements
Rank 1
Share this question
or