Forum


21:00

14/09/2009

Hello...
I have a nice little grid going, and I'd like to add in a 'grid as
subgrid' to view details of each record.
I have a function which looks something like this (see below) - now
the column where the plus symbol should show up is there, but with
nothing in it - and clicking on the empty column does nothing.
Inspecting the element with Firebug shows '<td style="" role="grid"/>'
So...any idea what I'm doing wrong here?
Using version 3.5.2, with a custom style.
function show_grid(fid,start,end){
// Clear the grid of any information
jQuery("#events").GridUnload();
// Create a new jqgrid with new column names and modals.
var mygrid = jQuery("#events").jqGrid({
url:'genie.pl?
REPORT=flume_losses&PAGE=HTTPResponse_events.htmp&operation=get_grouped_events&fid='
+ fid + '&start=' + start + '&end=' + end,
datatype: 'json',
mtype: 'GET',
height: 180,
autowidth: false,
colNames: column_names,
colModel: column_modal,
pager: jQuery('#pager'),
rowNum:2,
rowList:[2,30,50,100],
sortname: 'event_count',
gridview: true,
viewsortcols: true,
sortorder: "desc",
viewrecords: true,
imgpath: '/common/css/jquery-ui-mes-theme/images/',
caption: 'Events detail',
multiselect: false,
subGrid:true,
subGridRowExpanded: function(subgrid_id, row_id) {},
subGridRowColapsed: function(subgrid_id, row_id) {}
});
return;
Most Users Ever Online: 715
Currently Online:
38 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