-
16 Apr 2010 7:38 AM #1
Grid Grouping View not showing + and - sign before group.
Grid Grouping View not showing + and - sign before group.
I am working in Adobe Air and when I use a grouping view for a grid, the + and - sign is not showing before the group. I am using Extjs 3.1.0 and Extjs Air 3.1.
groupingview.jpgCode:Ext.apply(this, { title: myDate + ' - ' + myDay, border: true, frame: false, store: myStore, selModel: new Ext.grid.RowSelectionModel({singleSelect: true}), colModel: myColumnModel, stripeRows: true, animCollapse: false, view: new Ext.grid.GroupingView({ forceFit: true }) });
-
16 Apr 2010 11:40 PM #2
What ext-air package do you use?
Try this one.
I remember there was something with the gridview templates but I got rid of it long time ago.Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)
Enhanced ExtJS adapter for Adobe AIR
-
26 Apr 2010 11:45 AM #3
I found the fix to the problem. Here is what I needed to add before my onReady()
Code:Ext.grid.GroupingView.prototype.startGroup = new Ext.XTemplate( '<div id="{groupId}" class="x-grid-group {cls}">', '<div id="{groupId}-hd" class="x-grid-group-hd" style="{style}"><div class="x-grid-group-title">{groupTextTpl}</div></div>', '<div id="{groupId}-bd" class="x-grid-group-body">' ); Ext.grid.GroupingView.prototype.groupTextTpl = new Ext.XTemplate('{text}'); Ext.override(Ext.grid.GroupingView, { doGroupStart : function(buf, g, cs, ds, colCount){ buf[buf.length] = this.startGroup.apply(Ext.apply({ groupTextTpl: this.groupTextTpl.apply(g) }, g)); } });
-
30 Apr 2010 1:33 AM #4
Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)
Enhanced ExtJS adapter for Adobe AIR


Reply With Quote
