Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
126138 | Sep 26,2016 07:31 PM UTC | Sep 28,2016 04:42 AM UTC | ASP.NET MVC | 3 |
![]() |
Tags: Grid |
<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>
|
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.