PDA

View Full Version : Grouping grid issue in exjs



nadeemshafi9
7 Jul 2009, 6:10 AM
please help me my grouping grid is not working, can you guys see anything ? the store loads and the json comes down but the loading mask stays on the grid, no errors ff3.5



xtype: 'grid',
id: 'grid_conference_users_'+m[0].data.id,
loadMask: true,
region:'center',
store: new Ext.data.GroupingStore({
url: '/api/conference/getconferenceuserstats',
autoLoad: true,
autoDestroy: true,
reader: new Ext.data.JsonReader({
root: 'items',
totalProperty: 'totalCount',
id: 'RadAcctId'
},
[ 'RadAcctId', 'UserName', 'CallingStationId', 'FramedIPAddress', 'NASIPAddress','AcctOutputOctets', 'AcctInputOctets', 'AcctSessionTime']
),
baseParams: {
user: m[0].data.user,
startdate: m[0].data.startdate,
expiredate: m[0].data.expiredate
},
groupField: 'CallingStationId'
}),
colModel: new Ext.grid.ColumnModel({
columns:[
{header: 'RadAcctId', dataIndex: 'RadAcctId', width: 180, sortable: true},
{header: 'UserName', dataIndex: 'UserName', width: 180, sortable: true},
{header: 'CallingStationId', dataIndex: 'CallingStationId', width: 180, sortable: true},
{header: 'FramedIPAddress', dataIndex: 'FramedIPAddress', width: 180, sortable: true},
{header: 'NASIPAddress', dataIndex: 'NASIPAddress', width: 180, sortable: true},
{header: 'AcctOutputOctets', dataIndex: 'AcctOutputOctets', width: 180, sortable: true},
{header: 'AcctInputOctets', dataIndex: 'AcctInputOctets', width: 180, sortable: true},
{header: 'AcctSessionTime', dataIndex: 'AcctSessionTime', width: 180, sortable: true}
]
}),
view: new Ext.grid.GroupingView({
forceFit: true,
groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? \"items\" : \"items\"]})'
}),
width:600,
height:300,
frame:true,
iconCls:'icon-grid'

nadeemshafi9
7 Jul 2009, 6:47 AM
i fixed it it needed sort info in the store