New to Kendo UI for jQueryStart a free 30-day trial

Hiding Checkboxes in PDF Export for Kendo UI for jQuery Grid

Environment

ProductProgress® Kendo UI® Grid for jQuery
Version2024.3.806

Description

I am utilizing the Grid component and need the functionality to hide the checkboxes when exporting it to a PDF. This knowledge base article also answers the following questions:

  • How to exclude the selectable column from Grid PDF export?
  • How to hide elements in the Grid when exporting to PDF?
  • How to customize Grid PDF export appearance?

Solution

To hide the checkboxes from the exported PDF, leverage the .k-pdf-export CSS class. Apply the following CSS rule to target and hide the checkboxes within the Grid during the PDF export process:

css
.k-pdf-export #grid .k-checkbox {
    display: none;
}

This CSS rule ensures that checkboxes in the selectable column are not visible in the exported PDF document. It targets the checkboxes within the Grid identified by #grid when the .k-pdf-export class is applied, which is the case during the PDF export operation.

See Also