Author Topic: Render not working in pivot mode  (Read 2227 times)

EPM Solutions

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 182
    • View Profile
Render not working in pivot mode
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Re: Render not working in pivot mode
« Reply #1 on: November 05, 2018, 12:23:53 pm »
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.

EPM Solutions

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 182
    • View Profile
Re: Render not working in pivot mode
« Reply #2 on: November 06, 2018, 04:46:48 pm »
Hello Team,

Thanks,


Can you please share a example for this.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Re: Render not working in pivot mode
« Reply #3 on: November 06, 2018, 09:11:37 pm »
Please check this:

Code: [Select]
    pivotCM: function(evt, ui) {     
      this.Columns().each(function(col) {       
        if( col.summary){       
          col.render = renderHMap;
        }
      }, ui.CM)
    }   

https://next.plnkr.co/edit/tQh81uVxufXms3d1?preview
« Last Edit: November 06, 2018, 09:14:01 pm by paramquery »