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']
}]
});