<?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: checkOnUpdate always firing if edittype:'select'</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect</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/bugs/checkonupdate-always-firing-if-edittypeselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nickelj on checkOnUpdate always firing if edittype:'select'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20531</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20531</guid>
        	        	<description><![CDATA[<p>Thank you for the response!</p>
</p>
<p>If you only have Text in the Grid, then we should be comparing Text against Text and not Text against Value.</p>
</p>
<p>However, I think in the grid, the displayed items are whatever I return in the SQL. So....for a Select in a Form, it should be comparing against the Value I put in the Select and not against the Text. Anyway...my code above works for me. If you decide to not change your code, then I can always just make the change everytime I download a new version.</p>
<p>It just doesn&#39;t seem logical to me.</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Thu, 28 Oct 2010 01:05:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on checkOnUpdate always firing if edittype:'select'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20526</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20526</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>We compare the values betwen the grid and those in form select. In grid we always have Text and not Values.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 27 Oct 2010 19:14:44 +0300</pubDate>
        </item>
        <item>
        	<title>nickelj on checkOnUpdate always firing if edittype:'select'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20448</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20448</guid>
        	        	<description><![CDATA[<p>I figured out that you are comparing the Text instead of the value.&#160;</p>
</p>
<p>My understanding of a Select is that you should be comparing against the value - the text part is only for display purposes. Also...I do receive the correct value back for updates etc...so you must be returning the value part of the select statement there.</p>
</p>
<p>I am sure you have a reason for doing the comparison against the text, but I fixed my problem by changing this in grid.formedit.js - code starts at line 378</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; case "select-one":<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postdata[this.name]= $("option:selected",this).val();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; extpost[this.name]= $("option:selected",this).val();<br />//&#160;original code&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; extpost[this.name]= $("option:selected",this).text();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;</p>
</p>
<p>By the way...it would be super cool to at least get some acknowldgement that you have read this, even if I am wrong....I have&#160;yet to receive any response on any of my posts from you. Glad I haven&#39;t bought the PHP addon.&#160;&#160;</p>
<p>
Jim</p>
]]></description>
        	        	<pubDate>Sun, 24 Oct 2010 21:11:15 +0300</pubDate>
        </item>
        <item>
        	<title>nickelj on checkOnUpdate always firing if edittype:'select'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20423</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/checkonupdate-always-firing-if-edittypeselect#p20423</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>If I have a database field that is a enum("Y","N") field. If I leave the edittype as a text field, then I can use the Nav buttons to go to the next and previous records in a modal form without any problem.</p>
<p>However, if I use a edittype as a select, then the Nav buttons cause the "Data has changed" to popup even when I haven&#39;t changed anything. The correct information is displayed in both cases.</p>
</p>
<p>So....this works (the "Data changed" does NOT popup):</p>
<p>{name:&#39;author&#39;, index:&#39;author&#39;, width:50, align:&#39;center&#39;, editable:true, edittype:&#39;text&#39;}</p>
</p>
<p>This does not work (the "Data changed" DOES popup):</p>
<p>{name:&#39;author&#39;, index:&#39;author&#39;, width:50, align:&#39;center&#39;, editable:true, edittype:&#39;select&#39;, editoptions:{value:{Y:&#39;Yes&#39;,N:&#39;No&#39;}}}</p>
</p>
<p>Thanks,</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Fri, 22 Oct 2010 04:01:21 +0300</pubDate>
        </item>
</channel>
</rss>