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

SelectedItem Value Issue

1 Answer 112 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
jai
Top achievements
Rank 1
jai asked on 13 Mar 2008, 03:34 PM
Hi,

Im having small issue with RadComboBox, In my project we are using LinqDataSources, from that i need to bind the value in RadComboBox. please have a look of my code

<

telerik:RadComboBox DataTextField="LookupValue"  SelectedItem= '<% Bind("ReferredBy") %>' ID="rcReferredBy" EnableTheming="True" MarkFirstMatch="true" AllowCustomText="True" runat="server" AutoCompleteSeparator='","' TabIndex="6" ></telerik:RadComboBox>

Im using asp:FormView and LinqDatasource in my page. so without writing any code in backend i need to select the value in RadComboBox.
Please guide to solve this issue. I need to replace this 
SelectedItem= '<% Bind("ReferredBy") %>' .

Regards
Jai

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 17 Mar 2008, 05:41 PM
Hello jai,

You could specify the DataValueField property of RadComboBox to a specific field of the data source, like you have done with the DataTextField.

Please read more on RadComboBox data binding here: DataBinding Overview.

I hope this helps.

Regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
jai
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or