Forum


10:22

02/10/2008

My definition of the Grid is:
jQuery("#dataGrid").jqGrid({
url:'gestiona_exptes_grid.php',
datatype: "json",
colNames:['Fecha','Juzgado', 'N°Expte', 'Carátula', 'Motivo', 'Observaciones', 'Estado','Defensoría'],
colModel:[
{name:'fecha',index:'fecha', width:65, sorttype:"date",editable:true,editoptions:{size:25}},
{name:'juzgado',index:'juzgado', width:80, sortype:"int",editable:true,editoptions:{size:25}},
{name:'expte',index:'expte', width:100,editable:true,editoptions:{size:25}},
{name:'caratula',index:'caratula', width:200,editable:true,editoptions:{size:25}},
{name:'motivo',index:'motivo', width:120,editable:true,editoptions:{size:25}},
{name:'observaciones',index:'observaciones', width:80,editable:true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}},
{name:'estado',index:'estado', width:150,editable:true,editoptions:{size:25}},
{name:'defensoria',index:'defensoria', width:90,editable:true,editoptions:{size:25}},
],
pager: jQuery('#pager2'),
rowNum:10,
rowList:[10,20,30],
imgpath: 'javascipts/jQuery/themes/coffee/images',
mtype: "GET",
sortname: 'fecha',
viewrecords: true,
sortorder: "asc",
caption: 'Consultas Penales - Gestión de Expedientes',
multiselect: false,
height:'100%',
loadtext: 'Cargando...',
editurl:'someurl.php',
height:"100%"
}).navGrid('#pager2',
{refreshtitle:'Actualizar Datos', edit:true, del:false, add:false, search:false
});
var gr = $("#dataGrid").getGridParam('selrow');
if( gr != null ) {
$("#dataGrid").editGridRow(gr,{height:280,reloadAfterSubmit:false});
}
else {
alert("Seleccione un Trámite para Editar");
}
});
11:07

08/09/2008

I am not sure but I think the problem is the NavigationBar, you are combining two ways to edit, so take out the navigatioon bar and test it.
In Spanish.
Quita la opcion del NavigationBar y chequea el ejemplo "editing". Fijate que cuando editas por un boton no tienes las opciones del NavigationBar
HTH
02:17

Moderators
30/10/2007

Hello,
The error is in syntax - the righ is
}).navGrid('#pager2',{edit:true, del:false, add:false, search:false},...)
Also refer to docs for the right syntax
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:
101 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