Datasource Filters Cleared on AutoComplete Search

3 posts, 0 answers
  1. Brad
    Brad avatar
    2 posts
    Member since:
    Feb 2012

    Posted 13 Aug 2012 Link to this post

    When I set a filter on the datasource used by my autocomplete widget, the filter seems to be cleared the moment you search inside the autocomplete. Is there a way to override this functionality? I have a grid that I am filtering in several different ways and I want the autocomplete data to be updated to show these other filters. Code can be found below.

        var ds = new{data: createRandomData(50)})

        //create AutoComplete UI component
        var autoComplete = $("#input").kendoAutoComplete({
            dataSource: ds,
            dataTextField: 'FirstName',
            filter: "startswith",
            placeholder: "Search by First Name..."
        var grid = $('#grid').kendoGrid({
            dataSource: ds,
            columns: [
                {field: 'FirstName', title: 'First Name'}
        ds.filter([{ field: "FirstName", operator: "contains", value: "La" }]);

    The filter I manualy add in is automatically removed the moment I begin typing inside the autocomplete where instead I want to simply add an additional filter using the autocomplete. Any help is appreciated.

  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 16 Aug 2012 Link to this post

    Hello Brad,

     Indeed when the data source is shared filtering the combobox would filter the grid as well. If this is not wanted you may consider using two separate datasources.

    All the best,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Chris
    Chris avatar
    1 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post


Back to Top