Listbox filter

2 posts, 0 answers
  1. Mick
    Mick avatar
    3 posts
    Member since:
    Aug 2015

    Posted 20 Jun 2017 Link to this post

    Is there a suggested way to filter the source listbox? I'm hoping to be able to type into a text box above the listbox and have the items in the listbox filter based on the value in the textbox.

    I was looking into a basic angular filter, but am not sure of the best way to go about using it as it needs to be placed on the iterating element. 



  2. Viktor Tachev
    Viktor Tachev avatar
    1994 posts

    Posted 22 Jun 2017 Link to this post

    Hello Mick,

    If you would like to filter the items in a ListBox component you can get reference of the dataSource and call the filter() method for it.

    In order to get reference of the DataSource you can use the code from below:

    var ds = $("#listBoxID").data("kendoListBox").dataSource;

    Viktor Tachev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top