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


    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">
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager2" runat="server">
                    <asp:ScriptReference Assembly="Telerik.Web.UI"
                    <asp:ScriptReference Assembly="Telerik.Web.UI"
                    <asp:ScriptReference Assembly="Telerik.Web.UI"
                <br />
                <telerik:RadSearchBox ID="RadSearchBox1" runat="server"
                    DataKeyNames="CONTACT,ID" DataSourceID="SqlDataSource1" DataTextField="CONTACT"
                    DataValueField="CONTACT" EmptyMessage="test" >
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                    ConnectionString="<%$ ConnectionStrings:Example_ConnectionString %>"
                    SelectCommand="SELECT [ID], [CONTACT] FROM [CONTACTS]"></asp:SqlDataSource>
    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
Back to Top