<?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: change Navigator url / form editing parameters dynamical</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical</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/change-navigator-url-form-editing-parameters-dynamical/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on change Navigator url / form editing parameters dynamical</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19874</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19874</guid>
        	        	<description><![CDATA[<p>Hi Jack,</p>
<p>I am glad to hear that I could help you. The RowVersion was really needed in the exmple for the optimistic locking. I took the example from the project where the data will be hold on the Microsoft SQL Server and every row in the database has additional column with the non-nullable value of the type timestamp (<a href="http://msdn.microsoft.com/en-us/library/ms182776.aspx" rel="nofollow" target="_blank"><a href="http://msdn.microsoft.com/en-u" rel="nofollow">http://msdn.microsoft.com/en-u</a>.....82776.aspx</a> for details).</p>
<p>On every Edit operation in the jqGrid the value from the RowVersion will be send to the server automatically because the RowVersion column I defined with</p>
<p>hidden: true, editable: true, editrules: { edithidden: false }, hidedlg: true</p>
<p>option. So the value could be used for the optimistic locking. To use RowValue also in Delete operation I had to add the RowValue manualy inside of onclickSubmit as I described befor.</p>
<p>Best Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Sun, 19 Sep 2010 12:41:27 +0300</pubDate>
        </item>
        <item>
        	<title>slowjack2k on change Navigator url / form editing parameters dynamical</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19869</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19869</guid>
        	        	<description><![CDATA[<p>It works very well <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
</p>
<p>I made only one minor change insteed of a temporary urlEdit variable I use:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit804' value='Select Code' data-codeid='sfcode804' /></p>
<div class='sfcode' id='sfcode804'>
<p>&#160;jQuery(&#34;#grid_id&#34;).jqGrid(&#39;getGridParam&#39;,&#39;editurl&#39;)</p>
</div>
<p>You need RowVersion for optimistic locking, right?</p></p>
]]></description>
        	        	<pubDate>Sun, 19 Sep 2010 10:15:22 +0300</pubDate>
        </item>
        <item>
        	<title>slowjack2k on change Navigator url / form editing parameters dynamical</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19867</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19867</guid>
        	        	<description><![CDATA[<p>Thank you Oleg.&#160; You&#39;r right. It isn&#39;t nessecary to change mtype dynamical. You&#39;r example will serve me quite well. It&#39;s exactly what I was looking for.</p>
<p>Regards</p>
<p>Jack</p>
]]></description>
        	        	<pubDate>Sun, 19 Sep 2010 10:02:09 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on change Navigator url / form editing parameters dynamical</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19860</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19860</guid>
        	        	<description><![CDATA[<p>First of all you should remove comma after the <strong>refresh</strong>: "refresh:true<strong>,</strong>}" if you have the same problem in your code.</p>
<p>Now to your question. The requirement to use different <strong>mtype</strong> values I understend good, but having <strong>mtype</strong> absolute dynamic I don&#39;t understend.</p>
<p>You can overwrite <strong>url</strong> dynamicaly inside of <strong>onclickSubmit</strong> function. For example below you can find an example from one of my scripts:</p>
<p>jQuery("#gird").jqGrid(&#39;navGrid&#39;,&#39;#pager_id&#39;,<br />&#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; {edit:true, add:true, del:true, search:true, refresh:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { mtype: "PUT",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onclickSubmit: function(rp_ge, postdata) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rp_ge.url = urlEdit + &#39;/&#39; + postdata.list_id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { mtype: "POST" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { mtype: "DELETE",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onclickSubmit: function(rp_ge, postdata) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rp_ge.url = urlEdit + &#39;/&#39; + postdata +<br />&#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; &#39;?RowVersion=&#39; + grid.getCell (postdata, &#39;RowVersion&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>The variable urlEdit I define somewhere before. I hope you could use the example to write the code in your case.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Sun, 19 Sep 2010 01:25:12 +0300</pubDate>
        </item>
        <item>
        	<title>slowjack2k on change Navigator url / form editing parameters dynamical</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19856</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-navigator-url-form-editing-parameters-dynamical#p19856</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>is it possible to change edit, add, del url and mtype dynamical, or use a function?</p>
<p>I would like something like this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8176' value='Select Code' data-codeid='sfcode8176' /></p>
<div class='sfcode' id='sfcode8176'>jQuery(&#34;#gird&#34;).jqGrid(&#39;navGrid&#39;,&#39;#pager_id&#39;, {edit:true,<br />&#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; add:true,<br />&#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; del:true,<br />&#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; search:true,<br />&#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; refresh:true,<br />&#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; }, {url : function(original_url){ return new_url; } mtype: function(original_mtype){return new mtype;}}</div>
<p>Or can I change parameters for form editing after add-button and so on was pressed?</p>
</p>
<p>Regards</p>
<p>Jack</p></p>
]]></description>
        	        	<pubDate>Sat, 18 Sep 2010 17:08:47 +0300</pubDate>
        </item>
</channel>
</rss>