<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: multiple grids, one with frozen column</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/multiple-grids-one-with-frozen-column</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/multiple-grids-one-with-frozen-column/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>favipa on multiple grids, one with frozen column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiple-grids-one-with-frozen-column#p30993</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiple-grids-one-with-frozen-column#p30993</guid>
        	        	<description><![CDATA[<p>Hello, my problem is, that i have two grids in one page, each grid is loaded in diferents TABS, for the tabs i use the spry TabbedPanels of dreamweaver.</p>
<p>1. grid_servicios</p>
<p>2. grid_registros</p>
<p>The grid number 1, have two frozen columns, and when it loads first, there's no problem, but when it load first the grid number 2, and then the grid number 1, the frozen column doesnt work at all, and thats what i need, first that load the grid number2 and then load the grid number 1, thanks for your help, here is the code for the two diferents grids</p>
<p><strong>GRID 1</strong></p>
<p>jQuery('#grid_servicios').jqGrid({<br />
Â Â Â Â Â Â Â Â Â Â Â  url:'jsondetalleservicios.php?txtuser=&#60;?php echo $_SESSION['cedula'];?&#62;',<br />
Â Â  Â Â Â  Â Â Â  Â datatype: 'json',<br />
Â Â  Â Â Â  Â Â Â  Â colNames: ['C&#38;eacute;dula','Suscripci&#38;oacute;n&#60;br&#62;Contrato','Tel&#38;eacute;fono&#60;br&#62;Producto','Tel&#38;eacute;fono&#60;br&#62;Anterior','Celular&#60;br&#62;Asignado','Saldo&#60;br&#62;Pendiente','Cuentas&#60;br&#62;con Saldo','Tipo','Plan&#60;br&#62;Facturaci&#38;oacute;n','Saldo&#60;br&#62;Contrato','Ciclo','Provincia','Ciudad','Fecha&#60;br&#62;Instalaci&#38;oacute;n'],<br />
Â Â  Â Â Â  Â Â Â  Â colModel: [<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Cedula',index:'Cedula', width:80,align:"center",sortable:false,frozen:true},//<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â //{name:'Nombre',index:'Nombre', width:200,align:"center",sortable:false,frozen:true},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Suscripcion',index:'Suscripcion', width:150, sortable:false,align:"left",frozen:true},Â Â  Â Â Â  Â Â Â  Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Telefono',index:'Telefono', width:100, sortable:false,align:"center",frozen:true},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Telefono_Anterior',index:'Telefono_Anterior', width:80, sortable:false,align:"right"},Â Â  Â Â Â  Â Â Â  Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Celular_Asignado',index:'Celular_Asignado', width:80, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Saldo_Pendiente',index:'Saldo_Pendiente', width:100, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Cuentas_Saldo',index:'Cuentas_Saldo', width:100, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Tipo',index:'Tipo', width:120, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Plan_Facturacion',index:'Plan_Facturacion', width:150, sortable:false,align:"left"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Saldo_Contrato',index:'Saldo_Contrato', width:80, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Ciclo',index:'Ciclo', width:80, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Provincia',index:'Provincia', width:100, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Ciudad',index:'Ciudad', width:120, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Fecha_Instalacion',index:'Fecha_Instalacion', width:120, sortable:false,align:"right"},Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â ],<br />
Â Â  Â Â Â  Â Â Â  Â rowNum:10,<br />
Â Â  Â Â Â  Â Â Â  Â width:900,<br />
Â Â  Â Â Â  Â Â Â  Â rowList:[10,20,30],<br />
Â Â  Â Â Â  Â Â Â  Â pager: '#grid_servicios_pag',<br />
Â Â  Â Â Â  Â Â Â  Â //sortname: 'Telefono',<br />
Â Â  Â Â Â  Â Â Â  Â pgtext : "P&#38;aacute;gina {0} de {1}",<br />
Â Â  Â Â Â  Â Â Â  Â viewrecords: true,<br />
Â Â  Â Â Â  Â Â Â  Â sortorder: "desc",<br />
Â Â  Â Â Â  Â Â Â  Â //jsonReader: { repeatitems : false },<br />
Â Â  Â Â Â  Â Â Â  Â shrinkToFit: false,<br />
Â Â  Â Â Â  Â Â Â  Â rownumbers: true,<br />
Â Â  Â Â Â  Â Â Â  Â caption: "Detalle de Servicios",<br />
Â Â  Â Â Â  Â Â Â  Â height: 'auto'</p>
<p><strong>GRID 2</strong></p>
<p>jQuery('#grid_registros').jqGrid({<br />
Â Â  Â Â Â  Â Â Â  Â //url: 'jsonnumserv.php?nd='+new Date().getTime()+'&#38;txtuser=&#60;?php //echo $_SESSION['numserv'];?&#62;'+'&#38;srv='+ document.getElementById("pnumservicio").value,<br />
Â Â Â Â Â Â Â Â Â Â Â  url:'jsonnumservfijo.php?nd='+new Date().getTime()+'&#38;txtuser=&#60;?php echo $_SESSION['cedula'];?&#62;'+'&#38;srv='+ '&#60;?php if (isset($_POST['pnumservicio'])) echo $_POST['pnumservicio'];Â  ?&#62;'+'&#38;anio='+'&#60;?php if (isset($_POST['panio'])) echo $_POST['panio'];Â  ?&#62;'+'&#38;mes='+'&#60;?php if (isset($_POST['pmes'])) echo $_POST['pmes'];Â  ?&#62;',<br />
Â Â  Â Â Â  Â Â Â  Â datatype: 'json',<br />
Â Â  Â Â Â  Â Â Â  Â colNames: ['Visualiza &#60;br&#62;tu duplicado &#60;br&#62;de factura','Descarga &#60;br&#62;tu factura &#60;br&#62;electr&#38;oacute;nica','N&#38;uacute;mero de &#60;br&#62;Servicio','N&#38;uacute;mero de &#60;br&#62;Factura','A\u00f1o','Mes','Valor','Fecha'],<br />
Â Â  Â Â Â  Â Â Â  Â colModel: [<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Visualizar',index:'Visualizar', width:100, sortable:false,align:"center"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Descargar',index:'Descargar', width:100, sortable:false,align:"center" },<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Servicio',index:'Servicio', width:100, sortable:false,align:"center"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Factura',index:'Factura', width:200, sortable:false,align:"center"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Anio',index:'Anio', width:50, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Mes',index:'Mes', width:50, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Valor_Total',index:'Valor_Total', width:80, sortable:false,align:"right"},<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {name:'Fecha',index:'Fecha', width:120, sortable:false,align:"right"}<br />
Â Â  Â Â Â  Â Â Â  Â ],<br />
Â Â  Â Â Â  Â Â Â  Â pager: jQuery('#grid_paginador'),<br />
Â Â  Â Â Â  Â Â Â  Â rowNum: 10,<br />
Â Â  Â Â Â  Â Â Â  Â height: '100%',<br />
Â Â  Â Â Â  Â Â Â  Â //autowidth: true,<br />
Â Â  Â Â Â  Â Â Â  Â rowList: [10,20,30],<br />
Â Â  Â Â Â  Â Â Â  Â //imgpath: imagenpath,<br />
Â Â  Â Â Â  Â Â Â  Â sortname: 'Factura',<br />
Â Â  Â Â Â  Â Â Â  Â mtype: "POST",<br />
Â Â  Â Â Â  Â Â Â  Â recordtext: 'Facturas {0} - {1}',<br />
Â Â  Â Â Â  Â Â Â  Â emptyrecords: 'No existen registros',<br />
Â Â  Â Â Â  Â Â Â  Â pgtext : "P&#38;aacute;gina {0} de {1}",Â Â  Â Â Â  Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â loadtext: "Cargando...",Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â multiselect : true,Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â hidegrid:false,<br />
Â Â  Â Â Â  Â Â Â  Â viewrecords: true,<br />
Â Â  Â Â Â  Â Â Â  Â sortorder: 'asc',<br />
Â Â  Â Â Â  Â Â Â  Â caption: 'Factura Servicios Fijos',<br />
Â Â  Â Â Â  Â Â Â  Â //loadComplete : function(xhr){alert('loadComplete triggered')},<br />
Â Â  Â Â Â  Â Â Â  Â gridComplete: function()<br />
Â Â  Â Â Â  Â Â Â  Â {<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â var ids = jQuery("#grid_registros").jqGrid('getDataIDs');<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â //alert(ids);<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â for(var i=0;i &#60; ids.length;i++)<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â {<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â var cl = ids[i];<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â //alert(cl);<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â var chk = 'jqg_grid_registros_' + cl;<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â //alert(chk);<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â document.getElementById(chk).title = 'Marca la factura que deseas descargar'Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â }<br />
Â Â  Â Â Â  Â Â Â  Â },<br />
Â Â  Â Â Â  Â Â Â  Â loadError : function(xhr,st,err)<br />
Â Â  Â Â Â  Â Â Â  Â {<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â  var error_msg = xhr.responseText;Â Â Â Â Â Â  Â <br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â  var msg = "Some errors occurred during processing:";<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â  msg += '</p>
<p>' + error_msg;<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â  alert(msg);<br />
Â Â  Â Â Â  Â Â Â  Â Â Â  Â //jQuery("#rsperror").html("Type: "+st+"; Response: "+ xhr.status + " "+xhr.statusText);<br />
Â Â  Â Â Â  Â Â Â  Â }//,<br />
Â Â  Â Â Â  Â }).navGrid('#grid_paginador',{add:false,edit:false,del:false,search:false,refresh:true});</p>
]]></description>
        	        	<pubDate>Wed, 20 Aug 2014 23:43:54 +0300</pubDate>
        </item>
</channel>
</rss>