[starting from version: 2.4]
It is triggered before grid rendering.
The beforegriddraw
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.
To know when rendering is finished, use the aftergriddraw event.
1) How to use beforegriddraw
:
pivot.on('beforegriddraw', function (e) {
if (e.smooth == false)
console.log('Before grid draw with row/column scroll!');
else
console.log('Before grid draw with pixel scroll!');
});
Open the example on JSFiddle.
2) How to use beforegriddraw
for customizing cells based on the conditional formatting: live demo.