Tuesday, 18 November 2008

[ExtJs] Ext.grid.GroupingView : groupTextTpl

Get data for GroupingView

grid = new Ext.grid.GridPanel({
id: getGridArea,
ds: createStore,
cm: this.columnModelFile(),
view: new Ext.grid.GroupingView({
forceFit:true,
groupTextTpl: '{text}|{[ values.rs[0].data["state"] ]} ({[values.rs.length]} {[values.rs.length > 1 ? "Devices" : "Device"]})'
}),
// viewConfig: {
// forceFit:true
// },
sm: selectionModel,
width: 500,
height: 250,
//title: 'Firmware File List',
collapsible: false,
animCollapse: true,
bbar: pagingTool
});

No comments: