This is a migrated thread and some comments may be shown as answers.

hide and show export excel and pdf in grid

1 Answer 186 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yanesh
Top achievements
Rank 1
Yanesh asked on 26 Jun 2017, 06:33 AM
How set  export to excel and export to pdf based on condition kendo grid

1 Answer, 1 is accepted

Sort by
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.


Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Yanesh
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or