API reference
Table of contents

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/Type Description
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:

flexmonster.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 styling rows based on the conditional formatting: live demo.

See also

beforegriddraw