Forum
November 2nd, 2014
A
A
A
Topic RSS
Related Topics
Offline
Select Forum
New/Recently Updated Topics
New/Recently Updated Topics
TreeGrid
jqGrid Forum is moved

Help
jqGrid Forum is moved
Editing only one of the tables that are …
Filtring the JQGrid data while loading f…
Help needed ! Custom formatting groupTex…




The forums are currently locked and only available for read only access



format
Tags: subgrid formatter
12/04/2013
15:37
15:37

ericgs
New Member
Members
Forum Posts: 1
Member Since:
12/04/2013
12/04/2013

i run in to a problem, I have a jqgrid, w 1 sub gid, im have 2 date files (FECHA/fecha_compra and Fecha Recibido), i am formathing the main grid dato to dd/mm/yy and i want to do that to whit the sub grid, how can i do that?
this is my grid:
grid.jqGrid({ datatype: "xml", url:'../Controladores/cPedidos.php?action=lpp', mtype: 'POST', colNames:['FECHA','PROVEEDOR','USUARIO'], colModel:[ {name:'fecha_compra',index:'fecha_compra',width:120, sorttype: 'date', formatter: 'date', formatoptions: { srcformat: 'm/d/Y H:i', newformat: 'd/m/Y H.i'} }, {name:'nombre',index:'nombre',editable: false, width:560}, {name:'usuario_id',index:'usuario_id',width:100, editable: false} ], rowNum:100, rowList:[50,100,200], pager: '#paginacion', gridview:true, rownumbers:true, ignoreCase:true, sortname: 'fecha_compra', viewrecords: true, sortorder: "desc", caption:"Pedidos", height: "100%", subGrid : true, subGridUrl: '../Controladores/cPedidos.php?action=lac', subGridModel: [{ name : ['Codigo','Cantidad','Articulo','Estado','Rubro','Observaciones','Fecha Recibido','Usuario'], width : [50,50,450,60,60,150,0,0] }], ondblClickRow: function(id, ri, ci) { // edit the row and save it on press "enter" key grid.jqGrid('editRow',id,true,null,null, 'clientArray'); }, onSelectRow: function(id) { if (id && id !== lastSel) { // cancel editing of the previous selected row if it was in editing state. // jqGrid hold intern savedRow array inside of jqGrid object, // so it is safe to call restoreRow method with any id parameter // if jqGrid not in editing state if (typeof lastSel !== "undefined") { grid.jqGrid('restoreRow',lastSel); } lastSel = id; } } }).jqGrid('navGrid','#pager',{add:false,edit:false},{},{},myDelOptions,{multipleSearch:true,overlay:false});
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
57 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