ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: EPM Solutions on November 02, 2018, 12:48:08 pm
-
Hello Team,
We have two checkbox Heatmap and Highlight Deficit on grid header. On checkbox check we are performing some conditions to show background color according to values in the columns in render function. In normal grid it is working fine but if Pivot mode is on these functionalities not working.
For your understanding we created a plnkr. By default, Pivot mode is on and Heatmap and Highlight Deficit not working but if we remove pivot mode it is working fine.
This is required feature for our grid.
Plnkr URL: (If plnkr not loading try to click on refresh button)
https://next.plnkr.co/edit/sKHOSlEl8aPS46N8?preview
Please suggest and give your valuable feedback on same.
-
It's because in pivot mode, grid has different colModel than initial colModel. Your heatmap is defined in initial colModel only.
pivot colModel is available in pivotCM event and heatmap render function can be added to the relevant columns here.
-
Hello Team,
Thanks,
Can you please share a example for this.
-
Please check this:
pivotCM: function(evt, ui) {
this.Columns().each(function(col) {
if( col.summary){
col.render = renderHMap;
}
}, ui.CM)
}
https://next.plnkr.co/edit/tQh81uVxufXms3d1?preview