@(
Html.EJS().DropDownList("Album")
.DataSource(dataManager => dataManager.Url(Url.Action("Albums", "JS2", null, Request.Url.Scheme)).Adaptor("UrlAdaptor").CrossDomain(true))
.Placeholder("Selecciona")
.PopupHeight("200px")
.Fields(new Syncfusion.EJ2.DropDowns.DropDownListFieldSettings
{
Value = "AlbumId",
Text = "Titulo"/*, Id="AlbumId"*/
})
.ActionComplete("complete").ActionFailure("fail").Change("onSelect")
.Render()
) |
<div class="col-lg-12 control-section" style="margin: 50px">
<div id="wrapper">
</div>
</div>
<button id="datebutton" text="Click" onclick="onClick()"> click Partial view </button>
<script type="text/javascript">
function onClick() {
var ajax = new ej.base.Ajax('/Home/PartialView1/?Person2', 'GET', true);
ajax.send().then();
ajax.onSuccess = function (data) {
$("#wrapper").html(data);
}
}
</script> |
<div id="Myfrom" style="width:300px">
@(Html.EJS().DropDownList("Album").DataSource((IEnumerable<object>)ViewBag.data)
.Placeholder("Selecciona").PopupHeight("200px").Render()
)
@Html.EJS().ScriptManager() |