<?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: Why unformat mechanism does not respect empty strings or nulls ?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls</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/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Bugzee on Why unformat mechanism does not respect empty strings or nulls ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p23684</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p23684</guid>
        	        	<description><![CDATA[<p>Hello, I&#39;ve tried with jqgrid 4.1 and it works fine.</p>
<p>Cellvalue in formatter function is "" and therefore the if condition is true..</p>
<p>Did you try debugging to find the value of "cellvalue"..? try a alert("*"+Cellvalue+"*") inside</p>
<p>the formatter to see what you get.. (*s added to distinguish spaces in the alerted message if Cellvalue is a space)</p>
]]></description>
        	        	<pubDate>Sun, 19 Jun 2011 13:19:41 +0300</pubDate>
        </item>
        <item>
        	<title>jakemonO on Why unformat mechanism does not respect empty strings or nulls ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p23617</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p23617</guid>
        	        	<description><![CDATA[<p>you get any resolution on this? I have the same problem (jqGrid 3.7.2)</p>
]]></description>
        	        	<pubDate>Wed, 15 Jun 2011 17:44:33 +0300</pubDate>
        </item>
        <item>
        	<title>lpodolak on Why unformat mechanism does not respect empty strings or nulls ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p21748</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p21748</guid>
        	        	<description><![CDATA[<p>Can anybody help me with this?:)</p>
<p>thanks</p>
]]></description>
        	        	<pubDate>Tue, 18 Jan 2011 19:29:36 +0200</pubDate>
        </item>
        <item>
        	<title>lpodolak on Why unformat mechanism does not respect empty strings or nulls ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p21480</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-unformat-mechanism-does-not-respect-empty-strings-or-nulls#p21480</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m using custom formatter to display: &#39;no&#160;translation&#160;available&#8230;&#39; text whenever data in one cell is empty or null.</p>
<p>Here is how my format/unformat functions look like:</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit4116' value='Select Code' data-codeid='sfcode4116' /></p><div class='sfcode' id='sfcode4116'>function&#160;emptyTranslationFormatter(cellvalue,&#160;options,&#160;rowObject)&#160;{<br />  if&#160;(cellvalue&#160;==&#160;null&#160;&#124;&#124;&#160;cellvalue&#160;==&#160;&#39;&#39;)<br />    return&#160;&#39;no&#160;translation&#160;available...&#39;;<br /><br />  return&#160;cellvalue;<br />}<br /> <br />function&#160;emptyTranslationUnformatter(cellvalue,&#160;options,&#160;cellobject)&#160;{<br />&#160;&#160;&#160;&#160;return&#160;&#39;&#39;;<br />}</div></pre>
<p>Column is defined this way</p>
<p>{ name: &#39;Title&#39;, index: &#39;Title&#39;, sortable: false, formatter: emptyTranslationFormatter, unformat:</p>
<p>emptyTranslationUnformatter, editable: true, editoptions: { size: 100} },</p>
</p>
<p>I use:</p>
<p>* jqGrid 3.8.2</p>
<p>* jQuery 1.4.4</p>
<p>* I have locale js file included before jqGrid js.</p>
</p>
<p>How can I force empty values appear on edit form while having nice text available in grid&#39;s read-only</p>
<p>appearance ?</p>
</p>
<p>many thanks,</p>
<p>Åukasz Podolak</p>
]]></description>
        	        	<pubDate>Wed, 29 Dec 2010 16:45:59 +0200</pubDate>
        </item>
</channel>
</rss>