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

Bind SelectedText

2 Answers 41 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
jfkrueger
Top achievements
Rank 1
jfkrueger asked on 19 Dec 2008, 05:18 PM

Hopefully this is a very easy one. How do I set the selected text property declaritively with the bind syntax? I do not want selectedvalue, i need to use SelectedText or the Telerik equivalent?

This does not work and there is no "SelectedText" property:

<telerik:RadComboBox ID="rcbCategory" runat="server" 
     DataSourceID="odsCategories" DataTextField="Category" 
     DataValueField="CategoryID" Width="75px"   
     ShowDropDownOnTextboxClick="true"   
     Height="150px" Text='<%# Bind("CategoryName") %>'>  
</telerik:RadComboBox> 


Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 21 Dec 2008, 06:36 PM
Hello Joe,

You need to set the AllowCustomText property to true in order to be able to set the Text property of RadComboBox.

Best wishes,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
jfkrueger
Top achievements
Rank 1
answered on 22 Dec 2008, 04:08 PM
Thanks!
Tags
ComboBox
Asked by
jfkrueger
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
jfkrueger
Top achievements
Rank 1
Share this question
or