- @(Html.Kendo().Grid<UsageStatics>()
- .Deferred()
- .Name("MyGrid")
- .Columns(columns =>
- {
- columns.Bound(p => p.UserName).Title("User")
- columns.Bound(p => p.LoginDate).Title("Last Login")
- })
- .Pageable(pager => pager
- .Refresh(true))
- .Sortable(s => s.SortMode(GridSortMode.MultipleColumn).AllowUnsort(true))
- .Filterable()
- .Scrollable()
- .Events(e => e.DataBound("_onDataBound"))
- .DataSource(dataSource => dataSource
- .Ajax()
- .PageSize(200)
- .Events(events => events.Error("errorHandler"))
- .ServerOperation(false)
- .Read(read => read.Action("GetUsers", "MyControllerName").Data("gridData"))
- )
-
- )
-
@(Html.Kendo().Grid<UsageStatics>()
.Deferred()
.Name("MyGrid")
.Columns(columns =>
{
columns.Bound(p => p.UserName).Title("User")
columns.Bound(p => p.LoginDate).Title("Last Login")
})
.Pageable(pager => pager
.Refresh(true))
.Sortable(s => s.SortMode(GridSortMode.MultipleColumn).AllowUnsort(true))
.Filterable()
.Scrollable()
.Events(e => e.DataBound("_onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(200)
.Events(events => events.Error("errorHandler"))
.ServerOperation(false) //allows sorting...
.Read(read => read.Action("GetUsers", "MyControllerName").Data("gridData"))
)
)
No comments:
Post a Comment