<?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: Detecting row changes</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes</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/detecting-row-changes/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>MANKOWITZ on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p25007</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p25007</guid>
        	        	<description><![CDATA[<p>Pete-</p>
</p>
<p>This seems like an elegant solution. Have you implemented it? Do you have example code?</p>
]]></description>
        	        	<pubDate>Thu, 27 Oct 2011 21:21:13 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8426</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8426</guid>
        	        	<description><![CDATA[<p>Tony, I am going to assume your changes were for the 3.5 version.&#160; I compared your changes in 3.5 and noticed that you changed the svr parameter from svr=[] to svr={} .&#160; I ported those changes to 3.4.4 and that seemed to fix the issue for me.</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 10:55:40 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8378</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8378</guid>
        	        	<description><![CDATA[<p>Thanks Tony.&#160; I came up with a temporary workaround but I&#39;ll apply the update and test it this weekend.</p>
<p>Much appreciated.</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 18:05:38 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8371</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8371</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes it is a bug - Fixed in GitHub. Could you please let me known if all work OK.</p>
<p>Thanks</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 10:18:04 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8369</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8369</guid>
        	        	<description><![CDATA[<p>The wierdness is that Firebug shows that rowData looks like an array of values. rowData displays like so in Firebug:</p>
<p>- rowData</p>
<p>&#160;&#160;&#160;&#160; certified=""</p>
<p>&#160; &#160;&#160; criteria1="TEACH"</p>
<p>&#160;&#160;&#160;&#160; criteria2="ANY"</p>
<p>&#160;&#160;&#160;&#160; criteria3="RHS"</p>
<p>&#160;&#160;&#160;&#160; criteria4=""</p>
<p>&#160;&#160;&#160;&#160; criteria5=""</p>
<p>&#160;&#160;&#160;&#160; gradeMax="12"</p>
<p>&#160;&#160;&#160;&#160; gradeMin="09"</p>
<p>&#160;&#160;&#160;&#160; id="3"</p>
<p>&#160;&#160;&#160;&#160; preferredSeq=""</p>
<p>These are the values from the row that was saved so that IS correct, yet console.log(rowData) returns [ ] (empty array).</p>
<p>I&#39;ll experiment some more but if I can get this cast to a string, I can finish up this app.</p>
<p>Thanks</p></p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 09:45:34 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8355</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8355</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You are right, but I think it is too late to change the name.</p>
<p>Do not know why this can not be converted. Check what you have in rowData</p>
<p>also you can do this</p>
<p>console.log(rowData);</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 00:42:26 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8338</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8338</guid>
        	        	<description><![CDATA[<p>One more issue.&#160; It looks like the&#160; $(&#8221;#mygrid&#8221;).getGridParam(&#39;savedRow&#39;) method is returning an array of multiple rows.&#160; Every time you save a row the savedRow parameter contains an additional rows information.&#160; Is that the intended behavior? If so, perhaps you should rename the parameter to savedRows (plural) which would more accurately indicate that the parameter contains ALL saved rows, rather than the row *just* saved, which is what I would have expected.</p>
</p>
<p>Also, I want to pass the saved row to my server function as a parameter.&#160; I know that the current row&#39;s data is passed as a parameter in the saveRow function but how would I change the savedRow parameter to a string that could be passed to the server?&#160; I grab the last row in the savedRow array like this:</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; var mySavedRow = $(&#39;#subQual&#39;).getGridParam(&#39;savedRow&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; var rownumsaved = mySavedRow.length - 1;<br />&#160;&#160;&#160; &#160;&#160;&#160; if(rownumsaved &#62;=0)<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var rowData = mySavedRow[rownumsaved];</p>
<p>but toString and JSON.stringify n the variable rowData return invalid results.&#160; It appears to be an array but I can&#39;t quite coerece it into a string.</p>
<p>Ideas?</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 21:11:22 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8330</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8330</guid>
        	        	<description><![CDATA[<p>Tony.&#160; Thanks!&#160; Of course. It&#39;s a *grid* parameter so getGridParam would be the method to return it.</p>
</p>
<p>Sigh!&#160; Sorry to bother you.</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 13:15:15 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8303</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8303</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is created for you automatically.</p>
<p>After editing the row - you can</p>
<p>var savedrow&#160; = $("#mygrid").getGridParam(&#39;savedRow&#39;);</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 10:10:46 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8285</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8285</guid>
        	        	<description><![CDATA[<p>Thanks Tony.&#160; I can see the property but it doesn&#39;t appear to have a value.&#160; I am using 3.4 of jqGrid.&#160; Do you have an example of how to use this property?&#160; In my case, I used it like this:</p>
<p>olddata = $(&#39;#myGrid&#39;).savedRow;</p>
<p>But there is no value in the property.&#160; How/when does this get populated?</p>
<p>I create the grid, populating the grid from the DB.&#160; Then, using inline editing, I would like to add some code to the onSelectRow function that basically compares the row as it was before the row was selected and the current value and, if there is a difference, THEN save it.&#160; I don&#39;t want/need to save the row if it hasn&#39;t changed.&#160; I am trying to detect that change.</p>
<p>If this is a 3.5 feature, let me know and I&#39;ll try it but it would also be helpful to see and example of how I would implement it.</p></p>
]]></description>
        	        	<pubDate>Wed, 05 Aug 2009 17:06:19 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8258</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8258</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There is a option savedRow, which save the row before editing. See options in grid.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 05 Aug 2009 02:30:44 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Detecting row changes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8248</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/detecting-row-changes#p8248</guid>
        	        	<description><![CDATA[<p>I&#39;d like to detect when a row&#39;s contents have changed so that I only have to make the round trip to the server when the actual data has changed.&#160; Right now I have my code conditioned on onSelectRow but of course it will show me what the row contents on a prior row was (if I save them) and it will show me what the currently selected row is.&#160; What I *want* is to compare the "before" and "after" values of the data on the same row.&#160; Something conditioned on an "onLeave" or "on blur" event to capture the record after it has been changed.</p>
<p>Has anyone done something like this?&#160; A nice enhancement would be to have an "onRowChange" event to fire when the contents have actually changed.</p>
<p>Ideas?</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Tue, 04 Aug 2009 15:15:34 +0300</pubDate>
        </item>
</channel>
</rss>