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

SelectedValue return incorrect value when ComboBox is disabled

4 Answers 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Lei
Top achievements
Rank 2
Lei asked on 29 Apr 2008, 04:33 AM
For example: the default SelectedValue of ComboBox is set by code-bebind to "A4", but for some reasons I need to disable the ComboBox and enable some other controls. For this case, the SelectedValue will not return the default value "A4" that I set before. But it works fine when the ComboBox is enabled.
Moreover, the SelectedValue will be lost after post-back when the ComboBox is disabled.

Louis

4 Answers, 1 is accepted

Sort by
0
venm
Top achievements
Rank 1
answered on 29 Apr 2008, 01:17 PM
Hi
 Which combobox are you using multicolumn(with templated fields) or normal combobox?
0
Lei
Top achievements
Rank 2
answered on 29 Apr 2008, 01:56 PM
Hi,

    I'm using normal RadCombobox control and the data is bound from database.

Louis
0
Helen
Telerik team
answered on 30 Apr 2008, 10:34 AM
Hi Lei,

We tried to reproduce the problem you described with the latest version of RadComboBox control, but without much success. Please refer to the attached project for more details. Does it work at your side? What is the difference in your case? Could you modify our project so that we can see the problem locally?


Regards,
Helen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Oscar
Top achievements
Rank 1
answered on 19 Nov 2008, 06:06 PM
We're experiencing exactly the same problem.


When we databind we set RadComboBox.SelectedValue = X.

But when the PageView that contains the combobox is Enabled=false we get the first item instead of the selected item.
Tags
ComboBox
Asked by
Lei
Top achievements
Rank 2
Answers by
venm
Top achievements
Rank 1
Lei
Top achievements
Rank 2
Helen
Telerik team
Oscar
Top achievements
Rank 1
Share this question
or