Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Adding more parameters to cellurl
13/04/2014
02:51
Avatar
sebastiancb
COlombia
Member
Members
Forum Posts: 23
Member Since:
05/09/2011
sp_UserOfflineSmall Offline

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"});
            }
        });

14/04/2014
15:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

Currently Online:
18 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information