【发布时间】:2015-01-22 06:07:29
【问题描述】:
我尝试从 Jquery 的控制器操作中读取 Kendo Dropdownlist。代码是
$("#CountryName").kendoDropDownList({
dataTextField: "Description",
dataValueField: "Id",
dataSource: {
transport: {
read: {
dataType: "jsonp",
url: "Shared/CountryAjax"
}
}
}
});
[HttpPost]
public ActionResult CountryAjax(string countryId)
{
var countries = this._decodeBL.GetAllCountriesList();
return new JsonResult
{
Data = new SelectList(countries, "Id", "Description", "Canada")
};
}
但它从不执行 CountryAjax。我需要这方面的帮助。谢谢。
【问题讨论】:
标签: jquery kendo-ui kendo-dropdown