<?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: &#38; ampersands and editGridRow and checkOnUpdate</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/ampersands-and-editgridrow-and-checkonupdate</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/ampersands-and-editgridrow-and-checkonupdate/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nickelj on &#38; ampersands and editGridRow and checkOnUpdate</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ampersands-and-editgridrow-and-checkonupdate#p20424</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ampersands-and-editgridrow-and-checkonupdate#p20424</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>It doesn&#39;t seem that the comparison for checkOnUpdate is quite right when using a modal form.</p>
<p>If the field has a "&#38;" in it, the grid handles it fine, but the editGridRow shows &#38;amp;</p>
<p>So a checkOnUpdate fails as the two are not equal.</p>
<p>In my php, I am doing a html_entity_decode when saving to the database, so the "&#38;" looks like a "&#38;" and not a "&#38;amp;" in my table.</p>
<p>For the moment, I have fixed it by replacing line 756 in grid.formedit.js with this:</p>
<p>if($.jgrid.htmlDecode(nObj[key]) != oObj[key]) {</p>
</p>
<p>Not sure if I am doing this right or not....maybe there is something more I should be doing to my data on the way to the grid?&#160; But the grid seems to handle it just fine - it is just the editor that gets screwed up.</p>
</p>
<p>Thanks,</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Fri, 22 Oct 2010 05:05:46 +0300</pubDate>
        </item>
</channel>
</rss>