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

RadComboBox not updating

1 Answer 64 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Raka
Top achievements
Rank 1
Raka asked on 15 Apr 2016, 07:26 PM

Hello

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";
            }
            else
            {
                rcbProgram.SelectedValue = subProgram == null ? "0" : subProgram.ProgramId.ToString();
                rcbProgram.Enabled = false;
            }
        }

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 Apr 2016, 01:27 PM
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?

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TreeList
Asked by
Raka
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or