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

RadComboBox inside UserControl SelectedIndexChaged not firing?

3 Answers 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 22 May 2009, 05:41 PM
I am not sure what is going on, but for some reason the server side SelectedIndexChanged is not firing. Also regardless of setting the AutoPostBack to true or false the control always performs a postback to the site. I have the user control inside an ASP.Net update panel, but the combobox alwasy does a non-ajax postback. It is really strange.

Any thoughts?

Daniel

3 Answers, 1 is accepted

Sort by
0
Mark Fitzpatrick
Top achievements
Rank 1
answered on 23 May 2009, 01:55 AM
Daniel,
Is the control being dynamically added to the page? If so, then you need to make sure you are re-generating it early enough in the page lifecycle. If you don't, the selectedindexchanged will never fire because the event will be wired up before the control is added, meaning there's nothing to fire since there isn't any control.
0
Daniel
Top achievements
Rank 1
answered on 23 May 2009, 12:38 PM
No, it is not being created dynamically. I got it to postback now, but it is not doing a partial page postback. I realized I was using an older version of the UI dll. I alos found out you HAVE to set the AutoPostBack to true for the control. No I get it to post back, but like I said, it is not doing a partial postback.

Daniel
0
Veselin Vasilev
Telerik team
answered on 25 May 2009, 01:02 PM
Hello Daniel,

I suggest that you paste here the relevant code so we can reproduce the problem.
Ideally, you can open a support ticket and attach a simple project there.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Daniel
Top achievements
Rank 1
Answers by
Mark Fitzpatrick
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or