PDA

View Full Version : PivotGrid and GetRowClass



stetou
25 Jan 2011, 12:54 PM
I'm evaluating if I could replace some of my grids by a PivotGrid. Until now it is very promising.

I read in the doc that "Currently title (http://dev.sencha.com/deploy/dev/docs/output/Ext.grid.PivotGridView.html#Ext.grid.PivotGridView-title) and getCellCls (http://dev.sencha.com/deploy/dev/docs/output/Ext.grid.PivotGridView.html#Ext.grid.PivotGridView-getCellCls) are the only configuration options accepted by PivotGridView. All other interaction is performed via the PivotGrid (http://dev.sencha.com/deploy/dev/docs/output/Ext.grid.PivotGrid.html) class."

In my grids I need to color the rows based on some cell values. getRowClass is used to manage that.
getCellCls (http://dev.sencha.com/deploy/dev/docs/output/Ext.grid.PivotGridView.html#Ext.grid.PivotGridView-getCellCls) permits to change the color of a cell based on its value. It is not what I need.

It seems that getRowClass doesn't work with PivotGrid. Is there any way I can change the background color of a row of a PivotGrid?
thanks
steve