I'm trying to filter dropdown and using nodatatemplate to add project from dropdown. Problem is when I'm click the dropdown its showing value and closing quickly, So I can't click on Add as new project button. Please see the screenshot. window is coming and closing quickly. HTML
<div class="col-6">
<label class="ez-label-bold">Project Name</label>
<input type="text" id="Job_Splitprojectname" class="ez-select w-100">
</div>
$("#Job_Splitprojectname").kendoDropDownList({
filter: "startswith",
dataSource: projectDS,
dataTextField: "ProjectName",
dataValueField: "ProjectID",
optionLabel: "Select Project",
noDataTemplate: $("#noDataTemplate").html()
});
nodatatemplate:
<script id="noDataTemplate" type="text/x-kendo-tmpl">
<div>
No Project Found. Do you want add as new Project - '#: instance.filterInput.val() #' ?
</div>
<br />
<button class="k-button" onclick="addNew('#: instance.element[0].id #', '#: instance.filterInput.val() #')">Add as new Project</button>
</script>
What is the reason that dropdown automatically closing while click on dropdown? within a millisecond list coming and closing. Issue is in this line filter: "startswith", . If i remove this line then dropdown not closing autometically. Thanks !
