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

Setting a Value to RadComboBox with ItemTemplate

1 Answer 118 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Himadri Banerjee
Top achievements
Rank 1
Himadri Banerjee asked on 04 Dec 2008, 01:33 PM
Dear Telerik Team
                             I have a RadComboBox with ItemTemplate as a RadTreeView Control. I have got everything working so far. My problem is I am getting stumped on setting a selected value or text on a Page Load Event after I bind the Tree  which th uer have saved previously. I am trying to set the text property RadCombo1.Text = "something" and it's giving me empty string.  May be I am missing something very obvious. What exactly do I have to do to show the text that has been selected and coming out of the database.

Thanks
Himadri

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 05 Dec 2008, 07:46 AM
Hello Himadri Banerjee,

In order to set the Text of the ComboBox you need either to set the AllowCustomText property to true or to select an Item (the Item's Text will become the Text of the ComboBox).

All the best,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Himadri Banerjee
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or