<?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: Unable to set different update url</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url</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/unable-to-set-different-update-url/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1521</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1521</guid>
        	        	<description><![CDATA[<p>I have perform some test and it works fine.</p>
<p>In the example above you must sure that no url parameter</p>
<p>is used ( I mean no url in navigator or editGridRow method)</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 17 Aug 2008 04:01:17 +0300</pubDate>
        </item>
        <item>
        	<title>daniel.pool on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1513</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1513</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I&#39;m having this exact same problem. Which ever button is clicked first sets the Edit URL rather than the two different URLs set being used.</p>
<p>I&#39;ve tried to use the beforeShowForm code that you suggested above, but this does not work (although alerting the edit url shows that it has been changed!)</p>
<p>Do you have any other suggestions?</p>
<p>Regards,</p>
<p>~Dane</p>
]]></description>
        	        	<pubDate>Fri, 15 Aug 2008 08:41:02 +0300</pubDate>
        </item>
        <item>
        	<title>nintondo on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1425</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1425</guid>
        	        	<description><![CDATA[<p>Thanks.. I tried that but when i used firebug it still direct to the first onclick function&#39;s url..(FIXED)</p>
<p>--- edit --</p>
<p>I tried fixing editurl: &#39;edit.jsp&#39;</p>
<p>and use oper (edit/add) to manipulate the functions..it worked for switching of urls</p>
<p>may i ask is this the proper way ? but logically the height of each option should change .. in my case it did not.. so not so sure whether the grid is deteching the navigator properly ? or should i attach behaviours to the beformshowform method</p>
</p>
<p>sorry sorry for the trouble</p>
]]></description>
        	        	<pubDate>Wed, 06 Aug 2008 04:06:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1424</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1424</guid>
        	        	<description><![CDATA[<p>In you case just after reloadAfterSubmit:true&#160; option</p>
<p>for booth</p></p>
]]></description>
        	        	<pubDate>Wed, 06 Aug 2008 03:50:38 +0300</pubDate>
        </item>
        <item>
        	<title>nintondo on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1423</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1423</guid>
        	        	<description><![CDATA[<p>sorry tony but where should i put those options and how should I set form ids?</p>
]]></description>
        	        	<pubDate>Wed, 06 Aug 2008 03:42:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1421</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1421</guid>
        	        	<description><![CDATA[<p>You vcan use beforeShowForm event in booth add and edit something like</p>
<p>//for add</p>
<p>beforeShowForm: function(form_id){</p>
<p>$("#mygrid").setGridParam({editurl:"add.jsp"})</p>
<p>}</p>
<p>//for edit</p>
<p>beforeShowForm: function(form_id){</p>
<p>$("#mygrid").setGridParam({editurl:"edit.jsp"})</p>
<p>}</p>
]]></description>
        	        	<pubDate>Wed, 06 Aug 2008 03:24:24 +0300</pubDate>
        </item>
        <item>
        	<title>nintondo on Unable to set different update url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1418</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-set-different-update-url#p1418</guid>
        	        	<description><![CDATA[<p>jqgrid has been great for me so far and I tried the navigator options</p>
<p>the issue I face is having different urls for editing..</p>
<p>onload whichever edit/add button is clicked first then the option is taken.. and the options that i set below will be disregarded&#8230;</p>
<p>say i click on edit.. the edit url will be edit.jsp .. my add function will also be linked to edit.jsp&#8230;</p>
</p>
<p>is there a way to specify? or what is passed through to notify that it is an edit/add/delete??</p>
<p>jQuery("#search").jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160; url:&#39;data.jsp&#39;,<br />&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;id&#39;,&#39;filename&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [{name:&#39;id&#39;,index:&#39;id&#39;,width:255,sortable:true,editable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;filename&#39;,index:&#39;filename&#39;,width:255,sortable:true,editable:true}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; imgpath: gridimgpath,<br />&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pagersr&#39;),<br />&#160;&#160; &#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadError: function (xhr,st,err){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Error"+": "+st+"\\n"+xhr.responseText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height:&#39;100%&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:"File Listing"</p>
<p>.navGrid(&#39;#pagersr&#39;, <br />{}, //options <br />{height:480,url:&#39;edit.jsp&#39;,reloadAfterSubmit:true}, // edit options <br />{height:480,url:&#39;add.jsp&#39;,reloadAfterSubmit:true}, // add options <br />{reloadAfterSubmit:true}, // del options <br />{} // search options <br />); <br />});</p>
]]></description>
        	        	<pubDate>Wed, 06 Aug 2008 03:15:10 +0300</pubDate>
        </item>
</channel>
</rss>