标签:
@(Html.Kendo().ComboBoxFor(p => p.SalesBackProvinceSysId)
.Placeholder("省份")
.HtmlAttributes(new { style = "width:18%", required = "required", validationMessage = "请选择" })
.DataTextField("Name")
.DataValueField("SysId")
.Filter(FilterType.Contains)
.Suggest(true)
.DataSource(source =>
{
source.Read(read =>
{
read.Action("ProvinceList", "BaseData");
});
})
.Events(evt => evt.Change("salesBackProvinceChanged"))
)
@(Html.Kendo().ComboBoxFor(p => p.SalesBackAreaSysId)
.Placeholder("城市")
.HtmlAttributes(new { style = "width:18%;margin:0px 0px 0px -5px", required = "required", validationMessage = "请选择" })
.AutoBind(true)
.DataTextField("Name")
.DataValueField("SysId")
.Filter(FilterType.Contains)
.Suggest(true)
.DataSource(source =>
{
source.Read(read =>
{
read.Action("CityList", "BaseData").Data("getSalesBackSelectedProvince");
});
})
)
标签:
原文地址:http://www.cnblogs.com/wu-peng/p/5514785.html