Forum
02:51
05/09/2011
Hello, I have a grid and I need to send more parameters to cellurl. I read the documentation, but I was not able to solve it.
is this posible?
MY source code:
$("#tb_conf_servicios").jqGrid({url: 'configuracion/conf_servicios/lista.php',
datatype: "xml",
colNames: ['id', 'CUP', 'Descripción', 'Nivel','Plano', 'Sexo', 'Edad Inicio', 'Edad Fin'],
colModel: [
{name: 'id_serv', index: 'id_serv', width: 50, sortable: true, hidden: true},
{name: 'cup', index: 'cup', width: 80, sortable: true},
{name: 'descripcion', index: 'descripcion', width: 420, sortable: true},
{name: 'nivel', index: 'nivel', width: 30, sortable: true, editable: true, edittype: 'select', editoptions: {value: "1:1;2:2;3:3;4:4"}},
{name: 'plano', index: 'plano', width: 50, sortable: true, editable: true, edittype: 'select', editoptions: {value: "1:AC;3:AP;4:OT"}},
{name: 'sexo', index: 'sexo', width: 30, sortable: true, editable: true, edittype: 'select', editoptions: {value: "A:A;M:M;F:F"}},
{name: 'edad_inicio', index: 'edad_inicio', width: 65, sortable: true, editable: true},
{name: 'edad_fin', index: 'edad_fin', width: 70, sortable: true, editable: true}],
rowNum: 10,
rowList: [10, 20, 30],
pager: '#paginador_conf_servcios',
sortname: 'id_serv',
viewrecords: true,
sortorder: "asc",
xmlReader: {root: "rows",
row: "row",
repeatitems: true,
id: "[id]"
},
caption: "Clasificacion de Servicios",
height: '100%',
cellurl: 'configuracion/conf_servicios/editar.php',
beforeSubmitCell:function(id){
var ret = $('#tb_conf_servicios').jqGrid('getRowData', id);
alert(ret.nivel);
$("#tb_conf_servicios").jqGrid('setPostData',{param2:"p2"});
}
});
15:06
Moderators
30/10/2007
Hello,
Well - there is documentation for this.
You will need to use serializeCellData .
You may need to look at this docs here
Regards
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:
55 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