3

How to add an option "All" in kendo dropdownlist.

@(Html.Kendo().DropDownList()
    .Name("SampleDDL")
    .DataTextField("Name")
    .DataValueField("Id")
    .DataSource
    (
        datasource => datasource.Read(read => read.Action("GetNames", "Sample"))
    )
    .OptionLabel("--- Select ---")
)
Krishna Mani
  • 177
  • 17
  • 2
    You will need to add it to the collection your `GetName()` method is returning - refer [this answer](http://stackoverflow.com/questions/35286658/include-all-option-in-dropdownlist-bind-using-viewbag/35304780#35304780) for an example –  Feb 18 '16 at 05:10

0 Answers0