<?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: Edit in navbar and php server issue</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/edit-in-navbar-and-php-server-issue</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/edit-in-navbar-and-php-server-issue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>DonNadie on Edit in navbar and php server issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-in-navbar-and-php-server-issue#p20352</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-in-navbar-and-php-server-issue#p20352</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>First of all, let me thank you for sharing that amazing work.</p>
</p>
<p>I&#180;m newbie in using jqGrid (just a couple of days doing some trials), but I&#180;ve meet and issue that keep me blocked when I&#180;m using Edit option in from the navbar.</p>
<p>I&#180;ve defined the editurl:save_add_edit.php in order to handle the &#39;add&#39; and &#39;edit&#39; actions updating or inserting records into my mysql databse.</p>
<p>In order to detectec in my save_add_edit.php code if comming operation it&#180;s an insert or an update, I&#180;m doing a previous select looking for the unique id that &#39;should&#39; be passed as a $_request parameter to my php page. The fact is that the unique id seems to be always empty in my $_request array meanwhile if I create a new buton on my html page to handle the editting process it seems to work fine.</p>
<p>Here is the code that I&#180;ve inserted in my html page to handle a button to edit the selected row which is working properly with my save_add_edit.php page.</p>
<p>$("#edit").click(function(){ var gr = jQuery("#list").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;); if( gr != null ) jQuery("#list").jqGrid(&#39;editGridRow&#39;,gr,{height:280,reloadAfterSubmit:true,closeAfterEdit:true,url:&#39;save_add_edit.php?fn=2&#38;idn=&#39;+gr}); else alert("Pulse sobre la fila que desea modificar")});</p>
<p>They key is that handling click event I can define an special url assigned to edit operation which I use to add an special parameter like fn=2 for dettecting in my php page that the incomming operation is an edit one.</p>
<p>Is there any way to &#39;redefine&#39; an special url for the edit button in navbar?</p>
<p>Why the unique id it&#180;s not passing throught to my php page ?.</p>
</p>
<p>Thank you so much for your help</p>
]]></description>
        	        	<pubDate>Mon, 18 Oct 2010 14:49:18 +0300</pubDate>
        </item>
</channel>
</rss>