Selected Item Text is not filled in

2 posts, 0 answers
  1. Jan-Paul
    Jan-Paul avatar
    2 posts
    Member since:
    Apr 2012

    Posted 17 Jun 2013 Link to this post

    Hi,

    I have a really simple test page for RadSearchbox as following.
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits="Sample" %>
     
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager2" runat="server">
                <Scripts>
                    <asp:ScriptReference Assembly="Telerik.Web.UI"
                        Name="Telerik.Web.UI.Common.Core.js">
                    </asp:ScriptReference>
                    <asp:ScriptReference Assembly="Telerik.Web.UI"
                        Name="Telerik.Web.UI.Common.jQuery.js">
                    </asp:ScriptReference>
                    <asp:ScriptReference Assembly="Telerik.Web.UI"
                        Name="Telerik.Web.UI.Common.jQueryInclude.js">
                    </asp:ScriptReference>
                </Scripts>
            </telerik:RadScriptManager>
            <div>
               
                <br />
                <telerik:RadSearchBox ID="RadSearchBox1" runat="server"
                    DataKeyNames="CONTACT,ID" DataSourceID="SqlDataSource1" DataTextField="CONTACT"
                    DataValueField="CONTACT" EmptyMessage="test" >
                </telerik:RadSearchBox>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                    ConnectionString="<%$ ConnectionStrings:Example_ConnectionString %>"
                    SelectCommand="SELECT [ID], [CONTACT] FROM [CONTACTS]"></asp:SqlDataSource>
                
            </div>
        </form>
    </body>
    </html>
    As you can see it is nothing more than bind search box with a sql datasource.

    when I try to search I could get all the result back as I am expecting, but when I click on any result item, the Radsearchbox text is not filled in as item's text. 

    Could you help here?

    Telerik ASP.NET Ajax control ver. v.2013.1.417.40
    Thank you so much.
  2. Jan-Paul
    Jan-Paul avatar
    2 posts
    Member since:
    Apr 2012
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top