Forum
01:32
13/01/2010
Hi there, I have run into an issue that I can't seem to find a solution for on other forum posts. I have a master grid, with sub grids configured everytime you click on the + symbol next to a row. What I'm finding is that when i click the + without moving my mouse the subgrid renders fine, as soon as i move my mouse it disappears and won't come back unless i collapse and expand again.
I have found posts with users having similar issues and have tried downloading the latest files from github, but this still doesn't work for me. I am using the latest version of IE 8. Here is my code:
$("#contractors").jqGrid({
url:'contractor_data.aspx?call=' + $("#<%= lblContractorCompany.ClientID %>").text(),
datatype: 'json',
mtype: 'GET',
colNames:['ID','Full Name'],
colModel:[
{name:'ID',index:'ID', width:100,hidden:true},
{name:'FullName',index:'FullName', width:55}
],
pager: "#contractorsPager",
rowNum:-1,
autowidth:true,
height:"100%",
sortname: 'ID',
sortorder: "desc",
viewrecords: true,
caption: 'Contractors',
subGrid: true,
subGridRowExpanded: function(subgrid_id, row_id) {
// we pass two parameters
// subgrid_id is a id of the div tag created within a table
// the row_id is the id of the row
// If we want to pass additional parameters to the url we can use
// the method getRowData(row_id) - which returns associative array in type name-value
// here we can easy construct the following
var subgrid_table_id;
subgrid_table_id = subgrid_id+"_t";
$("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table>");
$("#"+subgrid_table_id).jqGrid({
url:"contractor_data.aspx?sub=true&fullname="+$("#contractors").getRowData(row_id).FullName + "&complete=" + $("#cbComplete").attr("checked") + "&verified=" + $("#cbVerified").attr("checked"),
datatype: "json",
colNames: ['ID','Customer','Full Name','Start Time','End Time','Project Name'],
colModel: [
{name:"ID",index:"ID",width:80},
{name:"Customer",index:"Customer",width:130},
{name:"FullName",index:"FullName",width:80,key:true},
{name:"StartTime",index:"StartTime",width:80},
{name:"EndTime",index:"EndTime",width:100},
{name:"ProjectName",index:"ProjectName",width:100}
],
rowNum:-1,
autowidth:true,
height: "100%",
rowNum:20,
sortname: 'ID',
sortorder: "desc"
});
}
});
$("#contractors").jqGrid('navGrid','#contractorsPager',{search:false,edit:false,add:false,del:false});
01:41
Moderators
08/10/2009
Which version are you using? Something very similar to that was addressed in 3.6.2 released a few days ago:
Trirand ASP.NET WebForms & MVC components based on jQuery & ThemeRoller
Most Users Ever Online: 715
Currently Online:
60 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