Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143182 | Mar 7,2019 10:32 PM UTC | Mar 11,2019 08:53 AM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: DropDownList |
@(
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() |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.