BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@Html.EJS().Grid("Grid").DataBound("dataBound").DataSource((DataTable)ViewBag.FFReport).AllowFiltering().AllowMultiSorting(true).PageSettings(page => page.PageSizes(new List<object>() { 5, 10, 15, 20, 25, 30 })).AllowTextWrap(true).AllowPaging(true).AllowExcelExport(true).AllowResizing(true).Height("400").AllowExcelExport().ToolbarClick("toolbarClick").Toolbar(new List<string>() { "ExcelExport" }).FilterSettings(filter => { filter.Type(Syncfusion.EJ2.Grids.FilterType.Excel); }).AllowGrouping(false).Render()
<script>
function dataBound() {
for (var i = 0; i < this.columns.length; i++) {
if (this.columns[i].type == 'date' || this.columns[i].type == 'datetime') {
this.columns[i].format = { type: 'date', format: 'dd/MM/yyyy' };
}
}
this.refreshColumns();
}
</script>
|
@Html.EJS().Grid("Grid").Load("load").DataBound("dataBound").DataSource((DataTable)ViewBag.FFReport).AllowFiltering().AllowMultiSorting(true).PageSettings(page => page.PageSizes(new List<object>() { 5, 10, 15, 20, 25, 30 })).AllowTextWrap(true).AllowPaging(true).AllowExcelExport(true).AllowResizing(true).Height("400").AllowExcelExport().ToolbarClick("toolbarClick").Toolbar(new List<string>() { "ExcelExport" }).FilterSettings(filter => { filter.Type(Syncfusion.EJ2.Grids.FilterType.Excel); }).AllowGrouping(false).Render()
<script>
var initialLoad = false;
function load() {
initialLoad = true;
}
function dataBound() {
if (initialLoad) {
initialLoad = false;
for (var i = 0; i < this.columns.length; i++) {
if (this.columns[i].type == 'date' || this.columns[i].type == 'datetime') {
this.columns[i].format = { type: 'date', format: 'dd/MM/yyyy' };
}
}
this.refreshColumns();
}
}
</script>
|