+1-888-365-2779
Try Now
More in this section

autocomplete

1 posts, 0 answered
  1. tim
    tim avatar
    27 posts
    Registered:
    12 Oct 2010
    16 Dec 2010
    Link to this post
    hi,

    I am trying to implement the following but its not working and I'm a little stumped. Its probably something trivial that I have missed so any pointers would be helpful

    http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx

    I am using a stored procedure to populate, but I'm not sure how the value gets put in to the parameter (i *think* thats where its failing)

                     <telerik:RadComboBox ID="RadComboBox1" AutoCompleteSeparator="," AllowCustomText="true" MarkFirstMatch="true" EmptyMessage="Please enter spome text" HighlightTemplatedItems="true" runat="server" EnableLoadOnDemand="true" EnableScreenBoundaryDetection="false" AutoPostBack="true" DataSourceID="SqlDataSource1" DataTextField="NAME1" DataValueField="NAME_ID">
                    </telerik:RadComboBox>
     
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:FooBarConnectionString %>"
        SelectCommand="GET_Names" SelectCommandType="StoredProcedure">
        <SelectParameters> <asp:Parameter Name="pNAME_LIKE" Type="String" /> </SelectParameters>
        </asp:SqlDataSource>

    if I add a DefaultValue in the Parameter tag it does the query and populates the dropdown but wont query based on the value I type in ??

    tia
    tim

    sorted it out. used RadComboBoxProduct_ItemsRequested and got rid of query in page
1 posts, 0 answered