Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.
All documentation
  • API Reference for older versions
  • aftergriddraw

    [starting from version: 2.4]

    It is triggered after grid rendering.

    The aftergriddraw event will be triggered as many times as the grid is redrawn. Grid rendering can occur several times depending on the amount of data to be shown.

    Before the grid rendering, the beforegriddraw event is triggered.

    Data passed to the handler

    Parameter/TypeDescription
    params
    Object
    Contains information about the event.
    params.smooth
    Boolean
    There are two types of grid draw: grid draw that adds row/column scroll and grid draw that adds pixel scroll.
    If aftergriddraw is called with smooth: false, it means that grid draw with row/column scroll has ended.
    If aftergriddraw is called with smooth: true, it means that grid draw with pixel scroll has ended.

    Examples

    1) How to use aftergriddraw:

    pivot.on('aftergriddraw', function (e) {
    if (e.smooth == false)
    console.log('After grid draw with row/column scroll!');
    else
    console.log('After grid draw with pixel scroll!');
    });

    Open the example on JSFiddle.

    2) How to use aftergriddraw for customizing cells based on the conditional formatting: live demo.

    See also

    beforegriddraw