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


sub-grid items not showing even thogh sub-json recived
11/01/2011
16:31
16:31

nadeemshafi9
New Member
Members
Forum Posts: 2
Member Since:
11/01/2011
11/01/2011

hello everyone,
i have installed jquery grid,
i have my records showing up in my primary grid,
i have a sub-grid showing up
my Json URL for the sub-grid rows is showing up nicley
BUT
when i expand the sub-grid it is empty ????
i have played with row model etc no luck
any help appreciated.
here is my code.
jQuery("#list2").jqGrid({
url:"/Metrics/Chart/get-rawstats2/from/"+$( "#_from" ).val()+"/to/"+$( "#_to" ).val()+"/",
datatype: "json",
colNames:['count', 'sdp_filename','bandwidth'],
colModel:[
{name:'count',index:'count'},
{name:'sdp_filename',index:'sdp_filename'},
{name:'bandwidth',index:'bandwidth'}
],
rowNum:10,
rowList:[10,20,30, 40, 50, 60, 70, 80, 90, 100, 200],
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption:"Raw Statistics",
height: 240,
autowidth: true,
subGrid: true,
jsonReader : {
root: "rows",
page: "page",
total: "total",
records: "records",
repeatitems: true,
cell: "cell",
id: "id",
subgrid: {
root: "rows",
repeatitems: true,
cell: "cell",
id: "id"
}
},
subGridUrl : "/Metrics/Chart/get-rawstats-children2/from/"+$( "#_from" ).val()+"/to/"+$( "#_to" ).val()+"/",
subGridModel: [ {
name : ['id', 'date', 'connect', 'disconnect', 'sdp_filename', 'bandwidth'],
width : [55, 200, 80, 80, 80],
align : ['left','left','right','right','right'],
params: ['sdp_filename']
}]
});
url:"/Metrics/Chart/get-rawstats2/from/"+$( "#_from" ).val()+"/to/"+$( "#_to" ).val()+"/",
datatype: "json",
colNames:['count', 'sdp_filename','bandwidth'],
colModel:[
{name:'count',index:'count'},
{name:'sdp_filename',index:'sdp_filename'},
{name:'bandwidth',index:'bandwidth'}
],
rowNum:10,
rowList:[10,20,30, 40, 50, 60, 70, 80, 90, 100, 200],
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption:"Raw Statistics",
height: 240,
autowidth: true,
subGrid: true,
jsonReader : {
root: "rows",
page: "page",
total: "total",
records: "records",
repeatitems: true,
cell: "cell",
id: "id",
subgrid: {
root: "rows",
repeatitems: true,
cell: "cell",
id: "id"
}
},
subGridUrl : "/Metrics/Chart/get-rawstats-children2/from/"+$( "#_from" ).val()+"/to/"+$( "#_to" ).val()+"/",
subGridModel: [ {
name : ['id', 'date', 'connect', 'disconnect', 'sdp_filename', 'bandwidth'],
width : [55, 200, 80, 80, 80],
align : ['left','left','right','right','right'],
params: ['sdp_filename']
}]
});
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
73 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