Hello dear webix team,
I think i found an bug in your library. Based on your blog entry Cascading Comboboxes and Other Selection Widgets in Webix - Blog i created two suggest combos that are dependent. In this case the filtering of the options in the list based on the entered text value does not hide the options that do not fit the text value anymore.
see snippet Code Snippet
With best regards,
Michael
Hello Mimu1988
To filter the options list in the combo based on the entered text value you can do it in three ways:
- The easiest one is to parse new options each time for the selected category (continent).
Please check the example: Code Snippet
And this is not a bug as by default filtering is not summarized and onShow method overrides the built-in combo logic.
- The second way is using the build-in filter method in countries suggest property as well as filter options when the onShow method is triggered.
Please check the example: Code Snippet
- And the third option is using onTimedKeyPress event listener. But this is more a hack than an optimal solution.
- Please check the example: Code Snippet
So the most preferable solution of filtering the options is parsing them because using the build-in filtration or iterrrupt it by another event we need to take into account all filtering criteria and events. This is not so optimal.
As for the article even though it is 7 years old, the terminology clearly needs to be corrected and provide more examples. So thank you for pointing out the problem.