This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="width=100%;"> | |
@(Html.Kendo().Grid() | |
.Scrollable() | |
) | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timeZoneIdentifier = GetTimeZoneIdentifier(); // Get the appropriate timezoneidentifier from somewhere | |
var now = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.Now, timeZoneIdentifier); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
bool viewCreateUserName = false; | |
} | |
@helper ToolbarTemplate() | |
{ | |
<button class="k-button k-button-icontext k-grid-excel"><span class="k-icon k-i-excel"></span>Export to Excel</button> | |
<button class="k-button k-button-icontext selectall"><span class="k-icon"></span>Select All</button> | |
@*<a class="k-button k-button-icontext savegridstate" href="#"><span></span>Save Grid State</a> | |
<a class="k-button k-button-icontext loadgridstate" href="#"><span></span>Load Grid State</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Sortable() | |
.Filterable() | |
.Resizable(r => r.Columns(true)) | |
.Reorderable(r => r.Columns(true)) | |
.Groupable() | |
.ColumnMenu() // This gives the drop down menu on columns. | |
// In order to get the Multi-select list on a column menu, that specific column has to be setup with Multi(true), like this: | |
// columns.Bound(c => c.ColumnName).Filterable(f => f.Multi(true)); |