hide and show export excel and pdf in grid

2 posts, 0 answers
  1. Yanesh
    Yanesh avatar
    15 posts
    Member since:
    Aug 2016

    Posted 26 Jun 2017 Link to this post

    How set  export to excel and export to pdf based on condition kendo grid
  2. Georgi
    Georgi avatar
    685 posts

    Posted 28 Jun 2017 Link to this post

    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.

    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.
Back to Top