v7.3.0

Print
Feature

Allows printing Grid contents using browser print dialog.

This feature is based on PdfExport with only difference that instead of sending request to a backend it renders content to an IFrame element and requests print dialog for it. For more details about preparing HTML for printing, please refer to the PdfExport docs.

This feature will not work properly when Store uses lazyLoad

Usage

const grid = new Grid({
    features : {
        print : true
    }
})

// Opens popup allowing to customize print settings grid.showPrintDialog();

// Simple print grid.print({ columns : grid.columns.map(c => c.id) });

This feature is disabled by default. For info on enabling it, see GridFeatures.

See also

No results

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isPrint : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of Print class, or subclass thereof.
  • isPrint : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of Print class, or subclass thereof.
id: print

Source path

Grid/feature/export/Print.js

Demo

examples/print

Contents