RadComboBox inside UserControl SelectedIndexChaged not firing?

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    15 posts
    Member since:
    May 2009

    Posted 22 May 2009 Link to this post

    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
  2. Mark Fitzpatrick
    Mark Fitzpatrick avatar
    36 posts
    Member since:
    Jan 2004

    Posted 22 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel
    Daniel avatar
    15 posts
    Member since:
    May 2009

    Posted 23 May 2009 Link to this post

    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
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 25 May 2009 Link to this post

    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.
Back to Top