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

15 строки
689 B
Plaintext

@section MetaTags{
<meta name="description" content="This demo explains how to bind the remote data as a datasource to the Syncfusion ASP.NET MVC DropDownList contol." >
}
@section SampleHeading{
<span class="sampleName">Dropdownlist-Remote Data-ASP.NET MVC-SYNCFUSION</span>}
@section ControlsSection{
<div class="frame">
<div class="control">
@Html.EJ().DropDownList("customerList").Datasource(ds => ds.URL("//js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/").CrossDomain(true)).Query("ej.Query().from('Customers').take(6)").DropDownListFields(f => f.Text("CustomerID")).WatermarkText("Select a customer").Width("100%")
</div>
</div>
}