<?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: How pass parameters from jqGrid to Php</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-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/how-pass-parameters-from-jqgrid-to-php/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>heartslion on How pass parameters from jqGrid to Php</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24594</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24594</guid>
        	        	<description><![CDATA[<p>Hi, thanks a lot, ill check it out.</p>
]]></description>
        	        	<pubDate>Mon, 12 Sep 2011 16:51:47 +0300</pubDate>
        </item>
        <item>
        	<title>nelsonm on How pass parameters from jqGrid to Php</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24587</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24587</guid>
        	        	<description><![CDATA[<p>I found the solution to the problem with using the editData option.&#160; Please look at the floowing post link: <a rel="nofollow" href="/blog/?page_id=393/help/for-those-having-problems-with-the-editdata-option-not-working/&#38;value=editdata&#38;type=2&#38;include=1&#38;search=1" target="_blank"></a><a href="http://www.trirand.com/blog/?p" rel="nofollow" target="_blank">http://www.trirand.com/blog/?p</a>.....8;search=1</p>
]]></description>
        	        	<pubDate>Mon, 12 Sep 2011 00:56:31 +0300</pubDate>
        </item>
        <item>
        	<title>nelsonm on How pass parameters from jqGrid to Php</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24581</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24581</guid>
        	        	<description><![CDATA[<p>hello,</p>
<p>As i have discovered, posting data to php is not a consistent or intuitive process.</p>
<p>When the grid is initially created or refreshed, the only data posted to php (via postData option) are the following: "_search", "nd", "page", "rows", "sidx" and "sord".&#160; These variables as far as i can remember are only mentioned at the bottom of this link:&#160; <a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:first_grid" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....first_grid .</p>
<p><strong>_search:</strong> Will be true if you do a search, false otherwise. If true, you&#39;ll also get the "<strong>searchfield</strong>", "<strong>searchoper</strong>" and <strong>searchstring</strong>" for simple searching as well as "<strong>filters</strong>" for advanced searching.</p>
<p><strong>nd:</strong> is a timestamp having to do with an IE problem.<strong><br /></strong></p>
<p><strong>page:</strong> Get the requested page. By default grid sets this to 1.</p>
<p><strong>rows:</strong> get how many rows we want to have into the grid &#8211; by default the "rowNum" option parameter defined in the grid.</p>
<p><strong>sidx:</strong> get index row &#8211; i.e. user click to sort. by default the "sortname" option parameter defined in the grid.&#160; If you select a column to sort, the&#160;"sortname" option parameter will be the index name from colModel.</p>
<p><strong>sord:</strong> sorting order &#8211; by default the "sortorder" option parameter defined in the grid.&#160; Each time you click on a column header, the sort order option parameter will toggle.</p>
<p>The<strong> Row ID variable/name (id), Column variables/names and associated parameters</strong> are only posted when you initiate an edit, add or delete operation on the grid since you are attempting to modify database tables. During an edit, add or del operation, anything defined in postDATA will not get passed.&#160; When you create or refresh the grid, your only asking for data from the database so jqGrid does not post any column variables/parameters.&#160; Also, I believe what gets posted differs somewhat between edit, add and del.</p>
<p><strong>In any case, this all happens automatically when you initially create the grid, or when you click on the refresh, edit, add or delete buttons in the navigation layer. No other user action is required.<br /></strong></p>
<p>If you need to post other variables and their parameters to php, there are a number of way to do it but i&#39;ve found that other than passing them through the URL and EDITURL options as parameters, they are tricky to get functioning and the docs don&#39;t offer a lot of examples or explaination of the nuances.&#160; The other ways i have found but not been successful at getting to work are: editDATA and delDATA options, editGridRow and delGridRow methods, and the setGridParam method.</p>
<p>I still have not figured out how to get the editDATA and delDATA options to work.</p>
<p>The easiest way to find out what gets posted is to use something like Firebug with Firefox. It allows you to monitor and debug all activity between your browser page and the server script.</p>
<p>good luck.</p></p>
]]></description>
        	        	<pubDate>Sun, 11 Sep 2011 01:25:59 +0300</pubDate>
        </item>
        <item>
        	<title>heartslion on How pass parameters from jqGrid to Php</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24575</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-pass-parameters-from-jqgrid-to-php#p24575</guid>
        	        	<description><![CDATA[<p>Hi, i just want to know how can i pass the parameters of the grid to my php file, in the "editurl" i tried something but i didnt work besides that launched me an error that the "id" wasn&#39;t defined. :S. thanks</p>
</p>
<p>var lastsel;</p>
<p>jQuery("#rowed3&#8243;).jqGrid({</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;server2.php?q=2&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, width:55},</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, editable:true},</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name&#39;, width:100,editable:true},</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",editable:true},</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",editable:true},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",editable:true},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false,editable:true}&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10,</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30],</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#prowed3&#39;,</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,</p>
<p>&#160;&#160; &#160;viewrecords: true,</p>
<p>&#160;&#160;&#160; sortorder: "desc",</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id){</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;&#38; id!==lastsel){</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#rowed3&#39;).jqGrid(&#39;saveRow&#39;,lastsel);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#rowed3&#39;).jqGrid(&#39;editRow&#39;,id,true);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastsel=id;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p><strong><span style="text-decoration: underline;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: "showparameters.php?rid="+id,</span></strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "Using events example"</p>
<p>});</p>
<p>jQuery("#rowed3&#8243;).jqGrid(&#39;navGrid&#39;,"#prowed3&#8243;,{edit:true,add:false,del:false});</p>
<blockquote></blockquote>
]]></description>
        	        	<pubDate>Fri, 09 Sep 2011 18:19:58 +0300</pubDate>
        </item>
</channel>
</rss>