Filter by Contains doesn't work when comboBox has an initial text

2 posts, 0 answers
  1. Alan
    Alan avatar
    2 posts
    Member since:
    Jun 2014

    Posted 21 Jul 2014 Link to this post

    When I set a value to text property of ComboBox and then open the list of items , this shows all the items.This has to show only the items that contains the text entered.
    I don't know what is the mistake. Could you help me ?

    first step:
    combobox.setDataSource(dataSourceData);

    second step:
    combobox.text(oldText);

    third step: Open the list of Items.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 21 Jul 2014 Link to this post

    Hello Alan,

    The text method tries to select a data item based on its dataTextField. This method does not filter the data source. If you would like to filter the widget through its API, then use the search method. Please note that it will filter the items only if the filter option is set.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top