Hi All,
I'm using kendo mvc grid and sometimes i have 15k data or 100k data and sometimes i need to export excel them with 5k data and using your export excel function but it creates problem to me
Is there any limitation for row value? How can i handle this?
I want to export excel all my grids from toolbar actions... How can you help me?
Here is my grid..
@(Html.Kendo().Grid<ATGAlerts>() .Name("grdWaterAlert").AutoBind(false) .HtmlAttributes("width: 100%;cellpadding:0;") .DataSource(d => d.Ajax().Read("GridWaterAlertBinding", "Dashboards")) .Columns(columns => { columns.Bound(e => e.BelIdent).Title("Id").Width("auto"); columns.Bound(e => e.StationCode).Title("Station Code").Width("auto"); columns.Bound(e => e.StationName).Title("Station Name").Width("auto"); columns.Bound(e => e.BelTarih).Title("DateTime").ClientTemplate("#= kendo.toString(BelTarih, 'MM/dd/yyyy') #").ClientGroupHeaderTemplate("DateTime" + ": #= kendo.toString(value, 'MM/dd/yyyy') #").Width("auto"); columns.Bound(e => e.BelInsTime).Title("Alert Time").ClientTemplate("#= kendo.toString(BelInsTime, 'MM/dd/yyyy HH:mm tt') #").ClientGroupHeaderTemplate("DateTime" + ": #= kendo.toString(value, 'MM/dd/yyyy HH:mm tt') #").Width("auto"); columns.Bound(e => e.BelTankId).Title("Tank ID").Width("auto"); columns.Bound(e => e.ProductCode).Title("Product Code").Width("auto"); columns.Bound(e => e.BelAlarm).Title("Alarm").Width("auto"); columns.Bound(e => e.BelTotCapacity).Title("Total Capacity").Width("auto"); columns.Bound(e => e.BelWaterVol).Title("Water Volume").Width("auto"); }) .ToolBar(toolBar => { toolBar.Excel().HtmlAttributes(new { @class = "btnexcel" }).Text(" ").IconClass("k-i-excel"); toolBar.Custom().Text((string)ViewData["ClearFilter"]).HtmlAttributes(new { @class = "k-button", id = "cleargrid", href = "#", onclick = "clearFiltersWaterLevel()" }); }) .Excel(excel => excel.FileName("WaterAlert.xlsx").Filterable(true)) .Selectable() .Sortable() .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) .Filterable(filterable => filterable .Extra(false) .Operators(operators => operators .ForString(str => str.Clear() .StartsWith((string)ViewData["Startswith"]) .Contains((string)ViewData["Contains"]) )) ) .Groupable() .Scrollable(scrolling => scrolling.Height("100%")) .Resizable(config => { config.Columns(true); }) .Reorderable(config => { config.Columns(true); }) .ColumnMenu() )
Thanks for help!