This is a migrated thread and some comments may be shown as answers.

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

1 Answer 222 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 21 Jul 2014, 06:00 AM
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.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 Jul 2014, 11:42 AM
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!
 
Tags
ComboBox
Asked by
Alan
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or