Jquery 我们如何实现在剑道下拉列表中添加全选选项
如何在剑道下拉列表中添加选项“All”Jquery 我们如何实现在剑道下拉列表中添加全选选项,jquery,asp.net-mvc,kendo-ui,telerik,kendo-dropdown,Jquery,Asp.net Mvc,Kendo Ui,Telerik,Kendo Dropdown,如何在剑道下拉列表中添加选项“All” @(Html.Kendo().DropDownList() .Name("SampleDDL") .DataTextField("Name") .DataValueField("Id") .DataSource ( datasource => datasource.Read(read => read.Action("GetNames", "Sample")) ) .Opti
@(Html.Kendo().DropDownList()
.Name("SampleDDL")
.DataTextField("Name")
.DataValueField("Id")
.DataSource
(
datasource => datasource.Read(read => read.Action("GetNames", "Sample"))
)
.OptionLabel("--- Select ---")
)
您需要将它添加到
GetName()
方法返回的集合中-请参阅示例