Hi all,
I try to set Client template for Search Box using SqlDataSource with this code
But it's just get LocName.
Please, how can i get the others field (Descr, Lang, Long).
P/S: I custom this code from Client site Searchobox demo
I try to set Client template for Search Box using SqlDataSource with this code
<telerik:RadSearchBox runat="server" ID="RadSearchBox1" Width="350" DataTextField="LocName" OnClientSearch="OnClientSearch" DataSourceID="SqlDataSource1" DataKeyNames="LocID" DataValueField="LocID"> <DropDownSettings Height="400px"> <ClientTemplate> <h3>#= Text #</h3> <div class="details"> <span class="info"> <p> <b> #= DataItem.Descr# </b> <b> #= DataItem.Lang# </b> <b> #= DataItem.Long# </b> </p> </span> </div> </ClientTemplate> </DropDownSettings> </telerik:RadSearchBox><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TDMTConnectionString %>" SelectCommand="SELECT * FROM [tdmt_Location]"></asp:SqlDataSource>But it's just get LocName.
Please, how can i get the others field (Descr, Lang, Long).
P/S: I custom this code from Client site Searchobox demo