Forum
November 2nd, 2014
A
A
A
Topic RSS
Related Topics
Offline
The forums are currently locked and only available for read only access



multi grouping not working for me
Tags: multi grouping dont work
18/06/2012
13:37
13:37

nayrh
Member
Members
Forum Posts: 3
Member Since:
18/06/2012
18/06/2012

hi guys,
i can't make multi grouping work for me..what am i doing wrong:
$('#grdData').jqGrid({
//url: 'ForeignSharesHolding.aspx?method=GetGridData',
datatype: 'json',
colNames: ['Exchange', 'Market', 'Security Name', 'Free Qty', 'Provision Qty', 'CCY', 'LDP', 'Market Value
(Free Bal)', 'Foreign Fee
Issue Date', 'Amount (SGD)', '', ''],
colModel: [
{ name: 'exchange', index: 'exchange', width: 100, align: 'center' },
{ name: 'market', index: 'market', width: 100, align: 'center' },
{ name: 'secname', index: 'secname', width: 200 },
{ name: 'freeqty', index: 'freeqty', width: 100, align: 'right' },
{ name: 'provqty', index: 'provqty', width: 100, align: 'right' },
{ name: 'ccy', index: 'ccy', width: 100, align: 'center' },
{ name: 'ldp', index: 'ldp', width: 100, align: 'right' },
{ name: 'marketval', index: 'marketval', width: 100, align: 'right' },
{ name: 'foreigndate', index: 'foreigndate', width: 100, align: 'center' },
{ name: 'amount', index: 'amount', width: 100, align: 'right' },
{ name: 'remino', index: 'remino' },
{ name: 'clino', index: 'clino' }
],
rowNum: 5,
pager: '#pgrGrid',
sortname: 'exchange',
viewrecords: true,
sortorder: 'asc',
grouping: true,
groupingView: {
groupField: ['remino', 'clino'],
groupColumnShow: [false, false],
groupText: ['{0}', '{0}'],
groupCollapse: false,
groupOrder: ['asc', 'asc'],
groupDataSorted: true
}
});
$('#grdData').jqGrid('navGrid', '#pgrGrid', { add: false, edit: false, del: false, search: false, refresh: false });
//url: 'ForeignSharesHolding.aspx?method=GetGridData',
datatype: 'json',
colNames: ['Exchange', 'Market', 'Security Name', 'Free Qty', 'Provision Qty', 'CCY', 'LDP', 'Market Value
(Free Bal)', 'Foreign Fee
Issue Date', 'Amount (SGD)', '', ''],
colModel: [
{ name: 'exchange', index: 'exchange', width: 100, align: 'center' },
{ name: 'market', index: 'market', width: 100, align: 'center' },
{ name: 'secname', index: 'secname', width: 200 },
{ name: 'freeqty', index: 'freeqty', width: 100, align: 'right' },
{ name: 'provqty', index: 'provqty', width: 100, align: 'right' },
{ name: 'ccy', index: 'ccy', width: 100, align: 'center' },
{ name: 'ldp', index: 'ldp', width: 100, align: 'right' },
{ name: 'marketval', index: 'marketval', width: 100, align: 'right' },
{ name: 'foreigndate', index: 'foreigndate', width: 100, align: 'center' },
{ name: 'amount', index: 'amount', width: 100, align: 'right' },
{ name: 'remino', index: 'remino' },
{ name: 'clino', index: 'clino' }
],
rowNum: 5,
pager: '#pgrGrid',
sortname: 'exchange',
viewrecords: true,
sortorder: 'asc',
grouping: true,
groupingView: {
groupField: ['remino', 'clino'],
groupColumnShow: [false, false],
groupText: ['{0}', '{0}'],
groupCollapse: false,
groupOrder: ['asc', 'asc'],
groupDataSorted: true
}
});
$('#grdData').jqGrid('navGrid', '#pgrGrid', { add: false, edit: false, del: false, search: false, refresh: false });
i checked the json i'm sending to the grid and the format is ok..have anyone experienced this before?
thanks..
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
159 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66