<?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: Form Editing DelGridRow - Adding Additional Row Data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/form-editing-delgridrow-adding-additional-row-data</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/form-editing-delgridrow-adding-additional-row-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>brandonkirsch on Form Editing DelGridRow - Adding Additional Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/form-editing-delgridrow-adding-additional-row-data#p26545</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/form-editing-delgridrow-adding-additional-row-data#p26545</guid>
        	        	<description><![CDATA[<p>I found a more elegant solution in a response from Tony in another thread. &#160;There is a <a title="savedRow" href="/jqgridwiki/doku.php?id=wiki:inline_editing#notes" target="_blank">savedRow</a> object that is created you first active Inline Editing that stores the original values in the row. &#160;They are used to restore the row back to its original state in case the user cancels the operation.</p>
<p>The trick to access the savedRow object is this: </p>
<p><input type='button' class='sfcodeselect' name='sfselectit3318' value='Select Code' data-codeid='sfcode3318' /></p>
<div class='sfcode' id='sfcode3318'> $(&#39;#YourJQGridID&#39;).jqGrid(&#39;getGridParam&#39;,&#39;savedRow&#39;) </div>
<p> This returns an object of { colModelName : originalCellValue, ... } that you should be able to use in an onclickSubmit handler.</p>
]]></description>
        	        	<pubDate>Wed, 09 May 2012 21:29:15 +0300</pubDate>
        </item>
        <item>
        	<title>brandonkirsch on Form Editing DelGridRow - Adding Additional Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/form-editing-delgridrow-adding-additional-row-data#p26539</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/form-editing-delgridrow-adding-additional-row-data#p26539</guid>
        	        	<description><![CDATA[<p>Hi Everyone,</p>
<p>I am struggling to add some additional information to the AJAX request when using Form Editing + Navgrid + the default "Delete" button for the navgrid.</p>
<p>When I try to submit the default "Delete Row" action, I get RowID and oper: del in the AJAX request. &#160;I want to extend the AJAX request to include the values for each column in the deleted row. &#160;However, because Form Editing is enabled, $.jqGrid.getRowData(rowID) is returning colName : stringOfHTML instead of colName:colValue.</p>
<p>Can anyone suggest a clean way to obtain all of the column values for the row when submitting "Delete" operations?</p>
<p>Thanks,</p>
<p>Brandon</p>
</p>
<p>EDIT: &#160;The strings of HTML for the input elements don&#39;t even have "value" attributes, so is it completely impossible to get at the values of an inline-edit row? &#160;May have to go back to good ol&#39; jQuery itself to pull the values from the "live" inputs:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5340' value='Select Code' data-codeid='sfcode5340' /></p>
<div class='sfcode' id='sfcode5340'> $(rowID).find(&#39;[id^=&#39;+rowID+&#39;]&#39;).each(function(i,e){ e = $(e); localRows[e.attr(&#39;name&#39;)] = e.val(); });</div>
]]></description>
        	        	<pubDate>Tue, 08 May 2012 23:38:25 +0300</pubDate>
        </item>
</channel>
</rss>