Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145901 | Jul 12,2019 12:10 PM UTC | Jul 16,2019 05:46 AM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: Grid |
@(Html.EJS().Grid("TestGrid")..AllowSorting().AllowExcelExport().ToolbarClick("toolbarClick").AllowPdfExport().Toolbar(new List<string>() { "Print", "Search", "ExcelExport", "PdfExport" }).Render())
<script>
function toolbarClick(args) {
var gridObj = document.getElementById("TestGrid").ej2_instances[0];
if (args.item.id === 'TestGrid_excelexport') {
gridObj.excelExport();
}
}
</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.