aspnet-mvc-ej1-demos/Views/Dropdownlist/DatabindingLocal.cshtml

16 строки
605 B
Plaintext
Исходник Постоянная ссылка Обычный вид История

2022-12-22 11:46:50 +03:00
@section MetaTags{
<meta name="description" content="This demo explains how to bind the local data as a datasource to the Syncfusion ASP.NET MVC DropDownList contol." >
}
@section SampleHeading{
<span class="sampleName">Dropdownlist-Local Data-ASP.NET MVC-SYNCFUSION</span>}
@section ControlsSection{
<div class="frame">
<div class="control">
@Html.EJ().DropDownList("bikeList").Datasource((IEnumerable<Bikes>)ViewBag.datasource).DropDownListFields(df => df.ID("empid").Text("text").Value("text")).WatermarkText("Select a bike").Width("100%")
</div>
</div>
}