You must Sign In to post a response.
  • Category: ASP.NET

    Ajax combobox Suggestion in filter form

    Hi

    I am using ajax combobox in my application and append data from database see my ComboBox

    <asp:ComboBox ID="cmblocation" runat="server" CaseSensitive="false" CssClass="WindowsStyle" ItemInsertLocation="Append" AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" BackColor="#f0f0f0" Width="400px">
    </asp:ComboBox>

    i want filteration in suggestion
    my combobox items are


    Car
    Jeep
    Metro
    rail
    Train

    when i am enter a then
    Car
    Rail
    Train

    these items are highlighted.
  • #761820
    Hi Gaurav,

    you can achieve it by using JQuery UI Autocomplete inbuilt function, refer below link this will help you how to implement AutoComplete using JQuery.
    https://jqueryui.com/autocomplete/

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #761821
    how can i use this with my combobox databound from database

  • #761832
    Hi

    You can go through below link

    https://www.devbridge.com/sourcery/components/jquery-autocomplete/

    http://www.pontikis.net/blog/jquery-ui-autocomplete-step-by-step

    http://phppot.com/jquery/jquery-ajax-autocomplete-country-example/

    http://code.tutsplus.com/tutorials/how-to-use-the-jquery-ui-autocomplete-widget--net-10560

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #761951
    Hello Gaurav,

    Refer the below links :

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

    http://demos.devexpress.com/aspxeditorsdemos/ASPxComboBox/IncrementalFiltering.aspx

    http://jqueryui.com/autocomplete/#combobox

    http://www.benknowscode.com/2013/03/finishing-jquery-ui-autocomplete_4743.html

    http://www.codeproject.com/Questions/406421/Filtering-in-asp-combobox


    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #761969
    Hi

    <ajaxToolkit:ComboBox ID="ComboBox1"
    runat="server"
    AutoPostBack="False"
    DropDownStyle="DropDownList"
    AutoCompleteMode="SuggestAppend"
    CaseSensitive="False"
    CssClass=""
    ItemInsertLocation="Append" />

    Refer below link for more information regarding combobox filtering options.

    www.kettic.com/how-to/aspnet-ajax/controls-combobox/feature-filtering/

    Regards

    Sridhar Thota.
    If you learn't from defeat..
    You haven't really lost..

    Sridhar Thota.
    Editor: DNS Forum.


Sign In to post your comments