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
Moreover, the SelectedValue will be lost after post-back when the ComboBox is disabled.
Louis
4 Answers, 1 is accepted
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?
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
I'm using normal RadCombobox control and the data is bound from database.
Louis
0
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
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.
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.