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

Suggest should not change letters already typed

2 Answers 86 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
JT
Top achievements
Rank 1
JT asked on 19 Dec 2011, 11:32 PM
We have found a potential issue where suggestions change the letters you have typed into a combobox when you use filter: "contains" and suggest: true.

We think that when the filter is set to "contains", suggestions should still use a "startswith" pattern, except for when there is only one match 

A few test cases that can be tried at http://jsfiddle.net/AuSWr/ :

  1. If you type "ani", the suggestion will be "Alanis Morissette: Jagged Little Pill, Live" instead of "Animal Farm". This changes the three letters you've typed to "Ala". If you were to then continue typing the rest of the world "animal" for example, you end up with "Alamal" as your first three letters of "ani" have been replaced with "Ala".
  2. A similar result can be seen with the word "Shallow". We think this should not make a suggestion as there are no titles starting with "Shallow" but as the filter is set to "contains" you should still see these matches in the drop down list.
  3. If there is only one match, eg "Shallows" (matches with "Saltwater Experience: Sharks in the Shallows") then it makes sense to suggest this.
We think it should possibly be changed to operate like this or perhaps filter: "contains" and suggest: true are incompatible?

Cheers

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 22 Dec 2011, 10:29 AM
Hello,

 
Thank you for pointing this issue. I have logged this issue as a bug and we will try to fix it for the service pack scheduled for the end of January. Please note that the service pack will be available only for customers. As a gratitude for your involvement I have updated your Telerik points.

Greetings,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
JT
Top achievements
Rank 1
answered on 23 Dec 2011, 05:19 AM
Thanks for the quick response!
Tags
ComboBox
Asked by
JT
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
JT
Top achievements
Rank 1
Share this question
or