Hi again.
Thanks for your quick reply.
Unfortunately your solution doesn't work perfectly. I found two errors.
1º Error: The first time I run your sample, I need to click twice in order to show popup. The popup must show or hidden when I click only once.
2º Error: Once I insert any character into search input and then delete it, after that I can select the text "No Items" as you can see in the next image. This text mustn't be selected.
I hope you can support me as soon as possible, thanks again.
Regards, Luis Carlos.
$("#skillsets_container").on('click',function(){
var obj=$("#skillsets").data("ejDropDownList");
if(obj.model.dataSource=="")
{
obj.popupListItems = noitem;
obj.ultag.empty();
obj._isPlainType(obj.popupListItems) ? obj._plainArrayTypeBinding(noitem) :
obj._objectArrayTypeBinding(noitem, "search");
if (obj.ultag.find("li").length == 1) {
obj.ultag.find("li").eq(0).addClass("e-disable");
}
obj.inputSearch.attr("readonly","");
}else{
obj.inputSearch.removeAttr("readonly");
}
obj.showPopup();
}); |