RadComboBox not updating

2 posts, 0 answers
  1. Raka
    Raka avatar
    71 posts
    Member since:
    Sep 2011

    Posted 15 Apr 2016 Link to this post


    I have a textbox with an event handler for TextBox_OnTextChanged.  I also have a RadComboBox.

    When a value in TextBox changes, it does fire the TextBox_OnTextChanged event.  In this handler the RadComboBox.SelectedValue is set to either '0' or a non-zero value - which looks to be correct under the debugger. I have ajaxified it.  However, the RadComboBox selected value does not seem to be changing.  How do I get the RadComboBox to reflect the changed value?

    Thanks, Raka.


            protected void txtName_TextChanged(object sender, EventArgs e)
                if (string.IsNullOrEmpty(txtName.Text))
                    rcbProgram.Enabled = true;
                    rcbProgram.SelectedValue = "0";
                    rcbProgram.SelectedValue = subProgram == null ? "0" : subProgram.ProgramId.ToString();
                    rcbProgram.Enabled = false;

  2. Eyup
    Eyup avatar
    3617 posts

    Posted 20 Apr 2016 Link to this post

    Hi Raka,

    Please temporarily disable any AJAX on the page if present (RadAjaxManager, RadAjaxPanel, UpdatePanel, etc.) and enable your script debugger (FireBug or F12) to see whether there are any script or server errors interfering. Does the functionality work properly without AJAX?

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top