I am trying to load a drop down list, with data from AJAX. When it loads, I get the "waiting" circle over the list continually. I looked at the example, and noticed the same behavior.
View Code:
View Code:
<fieldset class="form-list"> <ol> <li> <label>Project *</label> @(Html.Kendo().DropDownList() .Name("1Project") .DataTextField("DisplayName") .DataValueField("ProjectID") .DataSource(source => { source.Read(read => { read.Action("ProjectList", "ReturnMail"); }); }) ) </li> <li> <label>Name Address 1</label> <input type="text" id="1NameAddress1" class="k-textbox" /> </li> <li> <label>Name Address 1</label> <input type="text" id="1NameAddress2" class="k-textbox" /> </li> <li> <label>Name Address 1</label> <input type="text" id="1NameAddress3" class="k-textbox" /> </li> <li> <label>Name Address 1</label> <input type="text" id="1NameAddress4" class="k-textbox" /> </li> <li> <label>Name Address 1</label> <input type="text" id="1NameAddress5" class="k-textbox" /> </li> <li> <label>City</label> <input type="text" id="1City" class="k-textbox" /> </li> <li> <label>State</label> <input type="text" id="1State" class="k-textbox" maxlength="2" /> </li> <li> <label> </label> <button id="SearchAddressButton" class="k-button primary">Search</button> </li> </ol> </fieldset>
Controller Code:public JsonResult ProjectList(string userName = "") { if (userName == "") userName = Request.ServerVariables["AUTH_USER"]; List<ProjectModel> proj = ProjectModel.AllProjects(); return Json(proj); }