When i loose focus of my browser, let say i click on another program & then goes back to my browser.
The dropdownlist goes down & then fast up again. I have 2 dropdownlists connected and it happens randomly on them
The dropdownlist goes down & then fast up again. I have 2 dropdownlists connected and it happens randomly on them
@(Html.Kendo().DropDownList() .Name("resources") .OptionLabel("Välj resurs eller sök bland alla...") .DataTextField("ResourceName") .DataValueField("ResourceID") .DataSource(source => { source.Read(read => { read.Action("GetResources", "ComboBox").Data("filterServices"); }) .ServerFiltering(true); }) .Template("<div><strong>" + "${ data.ResourceName }</strong><br/>" + " # if (data.ResourceInformation) { #" + "<em>${ data.ResourceInformation }</em></div>" + " # } #") .Events(x => x.Change("ChangeResource")) .HtmlAttributes(new { style = string.Format("width:{0}px", 340) }) )//// Dropdown 2//@(Html.Kendo().DropDownList() .Name("services") .OptionLabel("Välj tjänst...") .DataTextField("ServiceName") .DataValueField("ServiceID") .DataSource(source => { source.Read(read => { read.Action("GetServices", "ComboBox") .Data("filterResources"); }) .ServerFiltering(true); }) .Template("<div class='displayServices'><strong>" + "${ data.ServiceName } # if (data.ServicePrice) { # Pris: (${ data.ServicePrice }) # } #</strong># if (data.Priority) { # <img style='float: right' src='/Content/images/star.png' /> # } #<br/>" + " # if (data.ServiceInformation) { #" + "<em>${ data.ServiceInformation }</em></div>" + " # } #" + "<hr />") .HtmlAttributes(new { style = string.Format("width:{0}px", 340) }) )function ChangeResource() { $("#services").data("kendoDropDownList").dataSource.read(); } function filterResources() { return { resources: $("#resources").val() }; } function filterServices() { return { service: $("#services").val() }; }