How set export to excel and export to pdf based on condition kendo grid
1 Answer, 1 is accepted
0
Georgi
Telerik team
answered on 28 Jun 2017, 06:02 AM
Hello Yanesh,
In case you want to export only rows that meet a condition, It is possible to add a condition to the export logic of the Kendo Grid, when excelExport event is fired. You can achieve the same for the PDF exporting by adding your logic in the event handler of the pdfExport event.
The following dojo illustrates how to export only the rows where a certain condition is met:
If you want to toggle export buttons visibility, you can use jquery to hide and show them. The following dojo illustrates how to toggle buttons visibility using jQuery:
In case none of the aforementioned behaviors is the one you want to achieve, please send me more detailed information of what you want to achieve and I will suggest you a solution.