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

Calling open method while list is open closes the list

1 Answer 21 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Lewis
Top achievements
Rank 1
Lewis asked on 06 May 2014, 06:12 AM
I'm using the multiselect in a pretty basic scenario: simple string list to choose from. I have some custom script that allows me to add new items on the fly and part of that script keeps the list open as the user types. However, I am noticing that when I call the open method while the list is already open, the list then closes. How can I prevent this behavior or at least determine if the list is already open before calling the method?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 07 May 2014, 01:08 PM
Hello Lewis,

I tried to replicate the depicted issue, but the popup element stayed open after several open method calls. Check the test demo and let me know if I am missing something.
As a side note, you can check whether popup is opened like this:
var widget = //get multuselect instance here
 
if (widget.popup.visible()) {
   alert("Is open!");
}

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
MultiSelect
Asked by
Lewis
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or