<?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 to add a save button ?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-save-button</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-to-add-a-save-button/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on How to add a save button ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-save-button#p13244</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-save-button#p13244</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>navButtonAdd &#8211; add a button in the pager. If you do so every time a button will be added in the pager.</p>
<p>My suggestion is: add the button when you initialize the grid and the show/hide them when you edit/save the row</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3919' value='Select Code' data-codeid='sfcode3919' /></p>
<div class='sfcode' id='sfcode3919'>
<p>$(&#8221;#mygrid&#8221;).jqGrid({</p>
<p>..</p>
<p>});</p>
<p>$(&#8221;#mygrid&#8221;).jqGrid(&#39;navButtonAdd&#39;,&#39;#pager&#39;,{id:&#39;mysaveid&#39;,&#8230;});</p>
<p>$(&#8221;#mysaveid&#8221;).hide();</p>
</p>
</div>
<p>and then in beforeSelectRow just to show the button and after saving to hide them again.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 09:54:00 +0200</pubDate>
        </item>
        <item>
        	<title>xavier on How to add a save button ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-save-button#p13204</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-save-button#p13204</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I had some usability comments on inline editing (by row), and users didn&#39;t understand they needed to press enter to save.</p>
<p>I would have liked to add a "save" button when entering ito edit mode, and a msg "record saved" after.</p>
</p>
<p>I tried:</p>
<p>&#160;&#160; beforeSelectRow: function (id,e) {<br />jQuery(&#39;#list&#39;).navButtonAdd(&#39;#pager&#39;,{<br />&#160;&#160; caption:"Add",<br />&#160;&#160; buttonicon:"ui-icon-save",<br />&#160;&#160; onClickButton: function(){<br />&#160;&#160;&#160;&#160; alert("Save");<br />&#160;&#160; },<br />&#160;&#160; position:"last"<br />})</p>
</p>
<p>But it doesn&#39;t add the button.</p>
<p>(and not sure what to but on the OnClickButton function either)</p>
<p>Is there an option to display the save button on inline row editing ?</p>
<p>Thanks in advance, and I&#39;m seriously impressed by this plugin !</p>
<p>X+</p>
]]></description>
        	        	<pubDate>Mon, 21 Dec 2009 01:24:01 +0200</pubDate>
        </item>
</channel>
</rss>