BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<Dropdown>
@Html.EJ().DropDownList("DropDownList1").Datasource((IEnumerable<object>)ViewData["LocalDataSource"]).DropDownListFields(Df => Df.Text("Text")).ClientSideEvents(e=>e.Change("change"))
<GRID>
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowPaging() /*Paging Enabled*/
.SelectionType(SelectionType.Single)
.AllowResizing()
.AllowFiltering()
.Columns(col =>
{
. . .
}))
</div>
<Change Event>
<script>
function change(args) {
var link = window.document.getElementsByTagName('link'); //get the link of css file
var value = args.value; // get the dropdown value
$(link).attr('rel='nofollow' href', "/Content/ej/web/" + value + "/ej.web.all.min.css") // Change the theme
}
</script>
|