<?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: Pass all row data back to PHP</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pass-all-row-data-back-to-php</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/pass-all-row-data-back-to-php/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>RustedBucket on Pass all row data back to PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pass-all-row-data-back-to-php#p24727</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pass-all-row-data-back-to-php#p24727</guid>
        	        	<description><![CDATA[<p>So here&#39;s the bullk of my grid:</p>
<p>&#160;&#160;&#160; colNames:[&#39;Catalog&#39;, &#39;UPC&#39;, &#39;Description&#39;, &#39;Sales Qty.&#39;, &#39;Back Order&#39;, &#39;Need&#39;, &#39;Order Qty.&#39;, &#39;Min. Qty.&#39;, &#39;Purchase U/M&#39;, &#39;Ext. Cost&#39;],<br />&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;catalog_number&#39;,index:&#39;catalog_number&#39;, width:25, align:"center", sorttype:&#39;int&#39;},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;barcode&#39;,index:&#39;barcode&#39;, width:25, align:"center",sorttype:&#39;int&#39;},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;description&#39;,index:&#39;description&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;quantity&#39;,index:&#39;quantity&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;backorder&#39;,index:&#39;backorder&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;need&#39;,index:&#39;need&#39;, width:25, align:"center",editable:true, classes: &#39;activecell&#39; },<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;quantity&#39;,index:&#39;quantity&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;minimum_purchase_quantity&#39;,index:&#39;minimum_purchase_quantity&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;stocking_unit_quantity&#39;,index:&#39;stocking_unit_quantity&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;cost&#39;,index:&#39;cost&#39;, width:25, align:"center"},<br />&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10,<br />&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pcrud&#39;,<br />&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;altRows: false,<br />&#160;&#160;&#160; viewrecords: true,</p>
<p>&#160;&#160;&#160; loadonce:true,<br />&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160; &#160;shrinkToFit: true,&#160;&#160; &#160;<br />&#160;&#160;&#160; height:"auto",<br />&#160;&#160;&#160; scrollOffset: false,<br />&#160;&#160;&#160; sortname: &#39;catalog_number,barcode&#39;,<br />&#160; &#160;<br />&#160; &#160;&#160;&#160; &#160;onSelectRow: function(id)<br />&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;var gr = jQuery("#bwdetail").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;); <br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;if( gr != null ) jQuery("#bwdetail").jqGrid(&#39;editGridRow&#39;,gr,{height:280,reloadAfterSubmit:false,closeAfterEdit:true}); <br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;else alert("Please Select Row"); <br />&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160;&#160; editurl: "/app/buyworksheetdetail/updategrid/"</p>
</p>
<p>Basically what it&#39;s doing is creating a grid of rows with only one cell in the row editable. If I click the cell, the modal pops up with the form for that cell. Changing the value and hitting submit works, the form is submited and I can print_r the post data but only the field I edited is passed.</p>
<p>I need to pass all the values in the row, but only want one editable. Any pointers? Thnx</p>
]]></description>
        	        	<pubDate>Sat, 24 Sep 2011 22:15:01 +0300</pubDate>
        </item>
</channel>
</rss>