<?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: adding custom parameters to the grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid</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/adding-custom-parameters-to-the-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on adding custom parameters to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12966</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12966</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In the same link you will see&#160; extraparam option use it to pass additional parameters.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 13 Dec 2009 17:51:20 +0200</pubDate>
        </item>
        <item>
        	<title>grunch on adding custom parameters to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12938</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12938</guid>
        	        	<description><![CDATA[<p>Hi&#160;</p>
</p>
<p>Thanks you were right, your answer helps me a lot, but i still have a doubt, how i can send another variable when the enter is pressed, what i need to send is a variable like "oper" what i can use to edit, add or delete the record.</p>
</p>
<p>Thanks in advance</p>
]]></description>
        	        	<pubDate>Sat, 12 Dec 2009 00:31:27 +0200</pubDate>
        </item>
        <item>
        	<title>tony on adding custom parameters to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12634</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12634</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe you do not read the right section in the docs.</p>
<p>If you pass a second parameter to editRow - e.g true you can save tha data with enter key</p>
<p>See here:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing#editrow" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ng#editrow</a></p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Dec 2009 10:05:14 +0200</pubDate>
        </item>
        <item>
        	<title>grunch on adding custom parameters to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12602</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12602</guid>
        	        	<description><![CDATA[<p>Hi Tony, thanks for answer, i explain much better what im trying to do</p>
</p>
<p>i have three tables and two grids</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7243' value='Select Code' data-codeid='sfcode7243' /></p>
<div class='sfcode' id='sfcode7243'>
<p>table "ficha"</p>
<p>id: auto_incremental</p>
<p>...</p>
</p>
<p>table "persona"</p>
<p>id: auto_incremental</p>
<p>name: string</p>
<p>...</p>
</p>
<p>table "persona_ficha"</p>
<p>id: auto_incremental</p>
<p>ficha_id: fk with main</p>
<p>persona_id: fk with people</p>
<p>status: char(1)&#160;</p>
</div>
<p>My first grid is where i CRUD my "persona" table, this grid works all right, when i make double clic in the persona grid i fill the second grid, this is a grid where i put some fields from the persona table, i change the status (a combo select) for that persona record and i need to save the record in the table called "persona_ficha"</p>
<p>Now the problem is work with the second grid, i have this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9806' value='Select Code' data-codeid='sfcode9806' /></p>
<div class='sfcode' id='sfcode9806'>
<p>onSelectRow: function(id) {</p>
<p><span> </span>if(id != null) {</p>
<p><span> </span> &#160; &#160;jQuery("#grid_persona_ficha").editRow(id);</p>
<p><span> </span>}</p>
<p><span> </span>}</p>
</div>
<p>this is fine, when i select the row i can edit the grid, but i don&#39;t know how to save this, i would like to send the data with an "enter" press event by example, but i can&#39;t find this option in the event section in the wiki, the other way im trying to make it work is adding a custom save button in the navigation bar to save all the rows with a for loop</p>
<p>i did this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2862' value='Select Code' data-codeid='sfcode2862' /></p>
<div class='sfcode' id='sfcode2862'>
<p>&#160;&#160;.navButtonAdd(&#39;#pager_persona_ficha&#39;,{</p>
<p>&#160;&#160; title:"Guardar todos los registros",&#160;</p>
<p>&#160;&#160; caption:"",</p>
<p>&#160;&#160; buttonicon:"ui-icon-circle-plus",&#160;</p>
<p>&#160;&#160; onClickButton: function(){&#160;</p>
<p>&#160;&#160; &#160; &#160;var x = jQuery("#grid_persona_ficha").getDataIDs();</p>
<p>&#160;&#160; &#160; &#160;for(var i=0; i&#60;x.length;i++)</p>
<p>&#160;&#160; &#160; &#160;{</p>
<p>&#160;&#160; &#160; &#160; &#160;jQuery("#grid_persona_ficha").saveRow(x[i]);</p>
<p>&#160;&#160; &#160; &#160;}</p>
<p>&#160;&#160; },&#160;</p>
<p>&#160;&#160; position:"first"</p>
<p>&#160;&#160;});</p>
</div>
<p>but the problem in two cases is when i send the row data as a post i don&#39;t have a parameter like "oper" which i need to send values like "add", "edit" and "del"</p>
</p>
<div>concluding what i need to know is how to capture and [Enter] key pressed to send the information and how to send a parameter "oper" which this value change depending the buttons in the navbar you pressed</div>
<div></div>
<div>Thanks in advance</div>
</p>
<div></div>
]]></description>
        	        	<pubDate>Mon, 30 Nov 2009 21:54:05 +0200</pubDate>
        </item>
        <item>
        	<title>tony on adding custom parameters to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12574</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12574</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There are a lot of solutions, but the problem is where you want to add the parameter - to the grid url or to the editurl options?</p>
<p>In first case you can use setGridParam and use postData array</p>
<p>In second case you can use editData array if you use form editing,</p>
<p>but as I again say - with so little information not possible to help.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 30 Nov 2009 12:41:32 +0200</pubDate>
        </item>
        <item>
        	<title>grunch on adding custom parameters to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12525</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-custom-parameters-to-the-grid#p12525</guid>
        	        	<description><![CDATA[</p>
<p>Im having a problem with the jqgrid, im using custom buttons with "navButtonAdd" method and i need to send an "oper" parameter, but i dont know how do that</p>
</p>
<p>can you tell me how i can add custom parameters to send with the grid?&#160;</p>
</p>
<p>thanks in advance</p>
]]></description>
        	        	<pubDate>Fri, 27 Nov 2009 09:05:55 +0200</pubDate>
        </item>
</channel>
</rss>