Forum
00:59
22/12/2008
Hello! I have a problem with subgrid. When i try to delete a row in one of subgrids the submit window is showed out of screen, at the bottom. So i think it was because of the wrong calculation the start position of this window. This bug happen when there was many subgrids in the grid. And as lower subgrid than lower this window showing. Below a code of my grid. I have a two grid on a page. Tested browsers: FF3.5.2, IE8.0.6xxx. Version of jqGrid: 3.4.4.
$(”#xxx_xxx”).jqGrid({
url:”/xxx/xxx/xxx/”,
datatype: “xml”,
colNames:['â„–','xxx', 'xxx', 'xxx','xxx', 'xxx'],
colModel:[
{name:'id',index:'id', width:40, align:"center",editable:false},
{name:'name',index:'name', width:390,editable:false},
{name:'price',index:'price', width:60, align:"right",editable:false},
{name:'cnt',index:'cnt', width:45, align:"right",editable:true},
{name:'total',index:'total', width:70,align:"right",editable:false},
{name:'zakup',index:'zakup', width:40,align:"center",editable:false}
],
rowNum:20,
rowList:[10,20,30,50,100],
imgpath: '/js/jqGrid/themes/basic/images',
pager: 'xxx_xxx_pager',
sortname: 'name',
viewrecords: 'true',
multiselect: 'true',
sortorder: “asc”,
caption: 'xxx',
height:'auto',
width: winh,
mtype:”POST”,
editurl:”xxx”,
toolbar: [true,"bottom"],
});
jQuery(”#xxx_xxx2″).jqGrid({
url:”xxx”,
datatype: “xml”,
colNames:[
'xxx',
'xxx'
],
colModel:[
{name:'name',index:'name', width:460,editable:false},
{name:'total',index:'total', width:80,align:"right",editable:false}
],
rowNum:20,
rowList:[10,20,30,50,100],
imgpath: '/js/jqGrid/themes/basic/images',
pager: 'xxx_xxx_pager2',
sortname: 'name',
viewrecords: true,
//multiselect: true,
sortorder: “asc”,
caption:'xxx',
height:'auto',
width:winh+16,
mtype:”POST”,
editurl:”xxx”,
toolbar: [true,"bottom"],
subGrid: true,
subGridRowExpanded: function(subgrid_id, row_id) {
row_id_exp = row_id;
var subgrid_table_id;
subgrid_table_id = subgrid_id+”_t”;
pager_id = “p_”+subgrid_table_id;
expanded_table_name = “#”+subgrid_table_id;
jQuery(”#”+subgrid_id).html(”<table id='”+subgrid_table_id+”' class='scroll'></table><div id='”+pager_id+”' class='scroll'></div>”);
jQuery(”#”+subgrid_table_id).jqGrid({
url:”xxx”,
datatype: “xml”,
colNames: [
'xxx'
'xxx',
'xxx', 'xxx',
'xxx'
,'xxx'
],
colModel: [
{name:'id',index:'id', width:40, align:"center",editable:false},
{name:'name',index:'name', width:300,editable:false},
{name:'price',index:'price', width:60, align:"right",editable:false},
{name:'cnt',index:'cnt', width:45, align:"right",editable:true},
{name:'total',index:'total', width:70,align:"right",editable:false}
,{name:'zakup',index:'zakup', width:0,align:"center",editable:false}
],
height: “100%”,
width: winh-40,
rowNum: 20,
pager: pager_id,
mtype:”POST”,
multiselect: true,
imgpath: '/js/jqGrid/themes/basic/images',
sortname: 'name',
sortorder: “asc”,
editurl:”xxx”
}).navGrid(”#”+pager_id,{
del:true,
edit:false,
add:false,
search:false,
view:false
});
},
jQuery(”#xxx_xxx”).navGrid('#xxx_xxx_pager',{
addfunc: function() {
edit_smeta(1);
return true;
},
del:true,
edit:false,
search:false,
view:false,
refresh: false
},
{reloadAfterSubmit:true},
{reloadAfterSubmit:true},
{reloadAfterSubmit:true}).navButtonAdd('#xxx_xxx_pager',{
caption:””, buttonimg:”/js/jqGrid/themes/basic/images/refresh.gif”, onClickButton: function(){
jQuery(”#xxx_xxx”).trigger(”reloadGrid”);
jQuery(”#xxx_consist2″).trigger(”reloadGrid”);
}, position:”last”
});jQuery(”#xxx_xxx2″).navGrid('#xxx_xxx_pager2',{
del:false,
edit:false,
search:false,
view:false,
refresh:false
},
{reloadAfterSubmit:true},
{reloadAfterSubmit:true},
{reloadAfterSubmit:true});
});
07:20
Moderators
30/10/2007
Hello,
This is a known bug in 3.4.4. Sorry. Please upgarde to 3.5 and use jqModal set to false to resolve the problem.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
81 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