var grid_daily_hq = new Ext.grid.GridPanel({
autoScroll : true,
autoShow : true,
border : false,
store : store_daily_hq,
stripeRows : true,
cm : cm,
sm : new Ext.grid.RowSelectionModel({
singleSelect : true
}),
pageSize : pagesizes,
autoExpandColumn : 'name',
frame : true,
tbar : ['合同查询: ', ' ', new Ext.app.SearchField({
pageSize : pagesizes,
store : store_daily_hq,
paramName : '_Price[like][double]', // 需要查询的字段和方式
width : 250
})],
bbar : pagingBar_daily_hq,
view : new Ext.grid.GridView({ [color=red]-----第一个view[/color]
forceFit : true,
getColumnStyle : function(col, isHeader) {
var style = !isHeader? (this.cm.config[col].css || ''): '';
style += 'width:' + this.getColumnWidth(col)+ ';';
if (this.cm.isHidden(col)) {
style += 'display:none;';
}
if (isHeader) {
var align = 'center';
if (align) {
style += 'text-align:' + align + ';';
}
} else {
var align = this.cm.config[col].textalign;
if (align) {
style += 'text-align:' + align + ';';
}
}
return style;
}
}),
view : new Ext.grid.GroupingView({ [color=red]-----第二个view[/color]
forceFit : true,
groupTextTpl : '{text} ({[values.rs.length]} {["条"]})'
}),
iconCls : 'icon-grid'
});