<?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: Custom Formatter not working</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1</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/custom-formatter-not-working-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>trishasales on Custom Formatter not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1#p31364</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1#p31364</guid>
        	        	<description><![CDATA[<p>My colModel now looks like this:</p>
<p>[</p>
<p>{"name":"Id","index":"1","formatter":myText},<br />
 {"name":"Name","index":"2","formatter":myText},<br />
 {"name":"BillingCity","index":"3","formatter":myText},<br />
 {"name":"BillingPostalCode","index":"4","formatter":myText},<br />
 {"name":"BillingState","index":"5","formatter":myText},<br />
 {"name":"Type","index":"6","formatter":myText},<br />
 {"name":"Industry","index":"7","formatter":myText}</p>
<p>]</p>
<p>Â </p>
<p>However, I am getting the following javascript error once the page loads:</p>
<p><a href="http://trishasales.net/images/javascripterror.PNG"><img src="http://trishasales.net/images/javascripterror.PNG" width="100"  class="sfimageleft spUserImage" alt="Javascript Error" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>Would you have any idea if it's because of the placement of the myText function? I've declared the function somewhere in the document ready function...</p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2014 16:05:18 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Custom Formatter not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1#p31358</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1#p31358</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>Just to know</p>
<div class="sfcode">
<pre class="brush-javascript syntax">formatter: "text</pre></div><p>is very different from</p>
<div class="sfcode">
<pre class="brush-javascript syntax">formatter : text</pre></div><p>Â </p>
<p>I suggest to to chosse another name for your custom formatter something like</p>
<p>function mytext (...) {...}</p>
<p>Â </p>
<p>and then</p>
<p>Â </p>
<div class="sfcode">
<pre class="brush-javascript syntax">formatter: mytext</pre></div><p>Â </p>
<p>Hope this helps.</p>
<p>Â </p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Sun, 09 Nov 2014 14:06:57 +0200</pubDate>
        </item>
        <item>
        	<title>trishasales on Custom Formatter not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1#p31344</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-formatter-not-working-1#p31344</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have the following colModel:</p>
<p>[</p>
<p>{"name":"Id","index":"1","formatter":"text"},<br />
{"name":"Name","index":"2","formatter":"text"},<br />
{"name":"BillingCity","index":"3","formatter":"text"},<br />
{"name":"BillingPostalCode","index":"4","formatter":"text"},<br />
{"name":"BillingState","index":"5","formatter":"text"},<br />
{"name":"Type","index":"6","formatter":"text"},<br />
{"name":"Industry","index":"7","formatter":"text"}</p>
<p>]</p>
<p>Â </p>
<p>I am trying to display the undefined values into blank text and I already have the following function in place:</p>
<div class="sfcode">
<pre class="brush-javascript syntax">function text (cellvalue, options, rowObject) {
 if (jQuery.type(cellvalue) === "undefined") {
 alert("Hello!");
 return "";
 } else {
 alert("World!");
 }
 }</pre></div><p>For some reason, the undefined values are still displaying as "undefined" on the grid. I was wondering what I might have done wrong for it not to work?</p>
]]></description>
        	        	<pubDate>Thu, 06 Nov 2014 22:34:33 +0200</pubDate>
        </item>
</channel>
</rss>