Forum


06:29

11/11/2010

Hi there, im having some problems with Firefox and my grids as subgrids, i have a master grid with four subgrids. All of them show the information, and i can use the pager buttons to add, del or modify. The problem is with the second to fourth subgrid, where the number of total pages isn't displayed. If i try it on IE, it works correctly. Chrome has the same results as in Firefox.
Im using html() for the first subgrid, and append() for the other three. My code is:
<script type="text/javascript">
jQuery.noConflict();
subGrid:true,
subGridRowExpanded: function(subgrid_id, row_id){
//SUBGRID PARA INFORMACION DE DISEÑO
var subgrid_table_id3, pager_id3;
subgrid_table_id3 = subgrid_id+'a_t';
pager_id3 = "p_a"+subgrid_table_id3;
jQuery("#"+subgrid_id).html("<table id='"+subgrid_table_id3+"' class='scroll'></table><div id='"+pager_id3+"' class='scroll'></div><br>");
jQuery("#"+subgrid_table_id3).jqGrid({
url:'<?php echo JURI::root(true).'/administrator/components/com_marisol/otdiseno_getList.php?id=';?>'+row_id,
datatype: "xml",
witdth:'100%',
height:'100%',
autowidth:true,
colNames:['ID','Ancho','Talle','Pecho','Cintura','Cadera','Largo','Manga','Observaciones'],
colModel :[
{name:'idot', index:'idot', align:'center', hidden:true, width:30,editable:false,editoptions:{readonly:true}},
{name:'ancho', index:'ancho', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'talle', index:'talle', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'pecho', index:'pecho', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'cintura', index:'cintura', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'cadera', index:'cadera', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'largo', index:'largo', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'manga', index:'manga', align:'center',width:50, editable:false, editoptions:{readonly:true}},
{name:'observaciones', index:'observaciones', align:'center',width:50, editable:false, editoptions:{readonly:true}}
],
pager: pager_id3,
rowNum:5,
rowList:[5,10,15],
sortname: 'idot',
sortorder: 'asc',
viewrecords: true,
caption: 'Detalle de Diseno: '+row_id,
editurl: '<?php echo JURI::root(true).'/administrator/components/com_marisol/maestropro_edit.php';?>'
});
jQuery("#"+subgrid_table_id3).navGrid("#"+pager_id3,{add:false, del:false, edit:false, search:false},
{}, // edit options
{}, // add options
{}, // del options
{}, // search options, estaba probando esta opcion, solo das ESC para cerrar la ventana
{} // view options
);
//SUBGRID PARA EMPLEADOS
var subgrid_table_id, pager_id;
subgrid_table_id = subgrid_id+'_t';
pager_id = "p_"+subgrid_table_id;
jQuery("#"+subgrid_id).append("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div><br>");
jQuery("#"+subgrid_table_id).jqGrid({
url:'<?php echo JURI::root(true).'/administrator/components/com_marisol/ordenemp_getList.php?id=';?>'+row_id,
datatype: "xml",
witdth:'100%',
height:'100%',
autowidth:true,
hiddengrid:true,
colNames:['ID Orden de Trabajo', 'ID Empleado', 'Empleado', 'Cantidad'],
colModel :[
{name:'idot', index:'idot', align:'center', hidden:true, width:100, editable:true, editrules:{edithidden:true},editoptions:{readonly:true, defaultValue:row_id}},
{name:'idempleado', index:'idempleado', hidden:true, key:true, editable:false, editoptions:{readonly:true}},
{name:'empleado',
index:'empleado',
align:'center',
width:200,
editable:true,
editrules:{required:true},
edittype:'select',
editoptions:{size:1, dataUrl:'<?php echo JURI::root(true)."/administrator/components/com_marisol/empleado_select.php";?>'},
formoptions:{elmprefix:'(*)'}},
{name:'cantidad', index:'cantidad', align:'center', width:40, editable:true, editoptions:{size:10}, editrules:{integer:true, minValue:0}, formoptions:{elmprefix:" "}}
],
pager: pager_id,
rowNum:5,
rowList:[5,10,15],
sortname: 'idempleado',
sortorder: 'asc',
viewrecords: true,
caption: 'Detalle de Empleados: '+row_id,
editurl: '<?php echo JURI::root(true).'/administrator/components/com_marisol/ordenemp_edit.php';?>'
});
jQuery("#"+subgrid_table_id).navGrid("#"+pager_id,{},
{bottominfo:'(*) Campo Requerido', width:625, closeOnEscape:true, reloadAfterSubmit:true,
beforeShowForm: function(){
jQuery("#tr_idot").remove();
jQuery("#tr_empleado").remove();
}, editData:{idot:row_id}
}, // edit options
{bottominfo:'(*) Campo Requerido', width:625, closeOnEscape:true, reloadAfterSubmit:true, recreateForm:true,
beforeShowForm: function(){
jQuery("#tr_idot").remove();
}, editData:{idot:row_id}
}, // add options
{closeOnEscape:true, reloadAfterSubmit:true, delData:{idot:row_id}}, // del options
{closeOnEscape:true}, // search options, estaba probando esta opcion, solo das ESC para cerrar la ventana
{navkeys: [true,38,40], height:250,jqModal:false,closeOnEscape:true} // view options
);
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