<?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: format</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/format</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/format/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ericgs on format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/format#p28640</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/format#p28640</guid>
        	        	<description><![CDATA[<p>&#160; 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?</p>
</p>
<p>this is my grid:</p>
</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit3678' value='Select Code' data-codeid='sfcode3678' /></p><div class='sfcode' id='sfcode3678'>grid.jqGrid({
    datatype: &#34;xml&#34;,
    url:&#39;../Controladores/cPedidos.php?action=lpp&#39;,
    mtype: &#39;POST&#39;,
    colNames:[&#39;FECHA&#39;,&#39;PROVEEDOR&#39;,&#39;USUARIO&#39;],
    colModel:[
        {name:&#39;fecha_compra&#39;,index:&#39;fecha_compra&#39;,width:120, sorttype: &#39;date&#39;,
            formatter: &#39;date&#39;, formatoptions: { srcformat: &#39;m/d/Y H:i&#39;, newformat: &#39;d/m/Y H.i&#39;} },
        {name:&#39;nombre&#39;,index:&#39;nombre&#39;,editable: false, width:560},
        {name:&#39;usuario_id&#39;,index:&#39;usuario_id&#39;,width:100, editable: false}

    ],
    rowNum:100,
    rowList:[50,100,200],
    pager: &#39;#paginacion&#39;,
    gridview:true,
    rownumbers:true,
    ignoreCase:true,
    sortname: &#39;fecha_compra&#39;,
    viewrecords: true,
    sortorder: &#34;desc&#34;,
    caption:&#34;Pedidos&#34;,
    height: &#34;100%&#34;,
    subGrid : true,
    subGridUrl: &#39;../Controladores/cPedidos.php?action=lac&#39;,
    subGridModel: [{ name  : [&#39;Codigo&#39;,&#39;Cantidad&#39;,&#39;Articulo&#39;,&#39;Estado&#39;,&#39;Rubro&#39;,&#39;Observaciones&#39;,&#39;Fecha Recibido&#39;,&#39;Usuario&#39;], 
        width : [50,50,450,60,60,150,0,0] }],
    ondblClickRow: function(id, ri, ci) {
        // edit the row and save it on press &#34;enter&#34; key
        grid.jqGrid(&#39;editRow&#39;,id,true,null,null, &#39;clientArray&#39;);
    },
    onSelectRow: function(id) {
        if (id &#38;&#38; 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 !== &#34;undefined&#34;) {
                grid.jqGrid(&#39;restoreRow&#39;,lastSel);
            }
            lastSel = id;
        }
    }
}).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{add:false,edit:false},{},{},myDelOptions,{multipleSearch:true,overlay:false});</div></pre>
]]></description>
        	        	<pubDate>Fri, 12 Apr 2013 15:37:23 +0300</pubDate>
        </item>
</channel>
</rss>