I am using a kendo multi-select of version(2015.1.521). It is located in the lower side of the page. Widow size is increasing after selecting items. After removing some item from option using x icon, multi-select does not open. Is there any solution?
0
votes
What do you mean by 'it doesn't open' ?
– Sangram Nandkhile
It starts flashing, I mean it opens and get closed quickly. You can see in the dojo.
– Arshad
Sorry, I've tried this multiple times but it seems to be working fine at my end. No sudden flash or closing of window noticed. Which browser are you using?
– Sangram Nandkhile
Use chrome in incognito
– Arshad
2 Answers
1
votes
I have got a workaround where I am checking for active element. Solution dojo
$("#required").kendoMultiSelect({
autoClose:false,
close: function (e) {
var activeElement = document.activeElement.getAttribute('aria-owns');
var currentId = this.tagList[0].id;
if (activeElement != undefined && activeElement != null && activeElement.includes(currentId)) {
e.preventDefault();
}
}
});
0
votes
I was able to reproduce your problem. On the other hand, I wasn't able to reproduce it with a current version. That tells me, that it must have been a bug which has been fixed in the meantime.
The only way I found out which fixes the problem for me at 2015.1.521 is to refresh the Widget, once the problem occurred.
$("#required").data("kendoMultiSelect").refresh();
Now the question is, how do you know (programmatically) that you are in that error-state? Maybe you could refresh it on a regular basis. Until you upgrade to a newer version, it's going to be a workaround.