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

[Solved] Behavior like standard DropDownList possible?

1 Answer 90 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 07 Jun 2009, 10:31 PM
Hello!

I'm binding a standard dropdownlist to an objectdatasource by setting the properties "datatextfield" and "datavaluefield".

When I load a record from my database, I want to show the selected value which was saved into the record. I do this by setting dropdownlist1.text = valuefromtherecord while Page_Load-Event.

After Page is loaded, I can see the saved value selected in the dropdownlist.


When I want to do the same with RadComboBox, the control stays blank after Page-Loading!?! Why?

Any suggestions?

Bye

Michael

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Jun 2009, 05:39 AM
Hi Michael,

Have you set the AllowCustomText property of the RadComboBox to true? if not try setting it and see whether it is working as expected.

CS:
 
    RadComboBox1.Text = "Default Text"
    RadComboBox1.AllowCustomText = true

Thanks
Shinu.

Tags
ComboBox
Asked by
Michael
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or