This question is locked. New answers and comments are not allowed.
I am trying to set a comboBox client side. My code is below. The code works in that the AJAX request is made properly and the proper value/text is set in the comboBox. The problem is there is a "Loading" animation that never stops. What am I doing wrong here?
<div class="editor-item-line">
<div class="editor-label">
<%: Html.LabelFor(m => m.Entity.EmployeeId)%>
</div>
<div class="editor-field">
<%: Html.Telerik().ComboBoxFor(m => m.Entity.EmployeeId)
.DataBinding(databinding =>
databinding.Ajax().Select("GetUsersForComboBox", "User")
.Cache(false))
.HighlightFirstMatch(true)
.AutoFill(true)%>
<%: Html.ValidationMessageFor(m => m.Entity.EmployeeId)%>
</div>
</div>
AND THEN LATER IN THE JAVASCRIPT SECTION:var comboBox = $('#<%:Html.IdFor(m => m.Entity.EmployeeId)%>').data('tComboBox');
var selectItem = function(dataItem) {
return dataItem.Value == "<%:Model.Entity.EmployeeId%>";
}
comboBox.fill(function() {
comboBox.select(selectItem);
});