View Full Version : Conditional Ext.ux.grid.RowExpander

14 May 2010, 12:42 AM
Hello everybody,

i'm using Ext.ux.grid.RowExpander in a grid.
What I would like to do is: only show the Maximize ico (activate RowExpander) for rows of the grid, where a specific field of the record is greater than 0.

Is this possible?

14 May 2010, 12:57 AM
i think i solved this by myself. I used a renderer, like this:

renderer: function(val,a,rec) {if(rec.data.childs > 0)return '<div class="x-grid3-row-expander">&nbsp;</div>';}

Is this solution acceptable?