SelectedItem Value Issue

2 posts, 0 answers
  1. jai
    jai avatar
    16 posts
    Member since:
    Jan 2008

    Posted 13 Mar 2008 Link to this post


    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") %>' .


  2. Simon
    Simon avatar
    2281 posts

    Posted 17 Mar 2008 Link to this post

    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.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top