<?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: changing row color or font conditionally</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally</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/changing-row-color-or-font-conditionally/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13533</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13533</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Look here</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/help/custom-fonts-and-colors-for-cells" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....-for-cells</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 03 Jan 2010 19:10:24 +0200</pubDate>
        </item>
        <item>
        	<title>newperson on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13492</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13492</guid>
        	        	<description><![CDATA[<p>Figured out how to change the color on the cell, anyone know how to do it on the entire row?</p>
<p><input type='button' class='sfcodeselect' name='sfselectit793' value='Select Code' data-codeid='sfcode793' /></p>
<div class='sfcode' id='sfcode793'>
<p>...</p>
<p>&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;SKU Count&#39;,index:&#39;item_count&#39;, width:80,align:"right",searchoptions:{sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;]},&#160; formatter:highlight},</p>
<p>...</p>
</p>
<p>function highlight (cellValue, options, rowObject) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var color = (parseInt(cellValue) &#60; 10000) ? "red" : "green";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var cellHtml = "&#60;span style=&#39;color:" + color + "&#39; originalValue=&#39;" + cellValue + "&#39;&#62;" + cellValue + "&#60;/span&#62;";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return cellHtml;</p>
<p>}</p>
<p>...</p>
</div>
]]></description>
        	        	<pubDate>Fri, 01 Jan 2010 05:48:48 +0200</pubDate>
        </item>
        <item>
        	<title>Jason on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13486</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13486</guid>
        	        	<description><![CDATA[<p>Thanks 😉</p>
</p>
<p>I can get it to work using jQuery. I was hoping for something more built-in rather than bolted on. But, there is not an obvious solution out so I may just have to bolt it. When I parse the data back from my DB, I will perfom my conditional statement in that loop. If it needs to change colors I will set a hidden field with a certain value, then when the grid is complete, I will use a custom function to check that value and modify that entire row to a color if required.</p>
]]></description>
        	        	<pubDate>Thu, 31 Dec 2009 16:02:10 +0200</pubDate>
        </item>
        <item>
        	<title>newperson on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13479</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13479</guid>
        	        	<description><![CDATA[<blockquote>
<p><img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" />Jason said:</p>
<p>Tony,</p>
<p>Re: afterInsertRow</p>
<p>I currently have gridview: true for the grid in question and need that on due to the size of the cols and records returned.</p>
<p>Is there any other way to change a row&#39;s color based on something found in the SQL?</p>
</p>
<p>Jason</p>
</blockquote>
<hr />
<p>Jason,</p>
</p>
<p>Yes there is a way and it seems to be rather easy if you know jquery and a little about css.</p>
<p>If you look at this post <strong><span style="color: #003aaa;">Custom fonts and colors for cells</span></strong>&#160;I have the javascript required for looking at a cell in Colmodel which is populated by mysql, I then use a function to make changes if the value in each cell is less than 600 return the original content plus the modification. In this case I have not been able to apply a color yet as I don&#39;t exactly how to apply a color to it but the most difficult part has been accomplished.</p>
</p>
<p>PS: I think Tony is the only one who answers questions and I think he might be off or something, haven&#39;t seen anything from him in the last 2 days.</p>
]]></description>
        	        	<pubDate>Thu, 31 Dec 2009 03:00:10 +0200</pubDate>
        </item>
        <item>
        	<title>Jason on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13471</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13471</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Re: afterInsertRow</p>
<p>I currently have gridview: true for the grid in question and need that on due to the size of the cols and records returned.</p>
<p>Is there any other way to change a row&#39;s color based on something found in the SQL?</p>
</p>
<p>Jason</p>
]]></description>
        	        	<pubDate>Wed, 30 Dec 2009 22:09:28 +0200</pubDate>
        </item>
        <item>
        	<title>tony on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13387</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13387</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>use a custom formatter for this purpose - here is example</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter#example" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....er#example</a></p>
<p>Reagrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 28 Dec 2009 19:29:23 +0200</pubDate>
        </item>
        <item>
        	<title>newperson on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13384</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13384</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>It work on both cases &#8211; from the request <span class="smarterwiki-popup-bubble smarterwiki-popup-bubble-active" style="margin-left: -51px; margin-top: -57px; opacity: 0.25;"><span class="smarterwiki-popup-bubble-body"><span class="smarterwiki-popup-bubble-links smarterwiki-clearfix"><span class="smarterwiki-popup-bubble-links-row smarterwiki-clearfix"><a class="smarterwiki-popup-bubble-link" title="Search Twitter" href="http://search.twitter.com/search?q=request%20" target="_blank">[Image Can Not Be Found]</a><a class="smarterwiki-popup-bubble-link" title="Search Google" href="http://www.google.com/search?q=request%20" target="_blank"><img src="http://www.google.com/favicon.ico" width="32"  class="sfimageleft spUserImage" alt="" /></a></span><span class="smarterwiki-popup-bubble-links-row smarterwiki-clearfix"><a class="smarterwiki-popup-bubble-link" title="Search Wikipedia" href="http://smarterfox.com/wikisearch/search?q=request%20&#38;locale=en-US" target="_blank">[Image Can Not Be Found]</a><a class="smarterwiki-popup-bubble-link" title="Search OneRiot" href="http://www.oneriot.com/search?p=smarterfox&#38;ssrc=smarterfox_popup_bubble&#38;spid=8493c8f1-0b5b-4116-99fd-f0bcb0a3b602&#38;q=request%20" target="_blank">[Image Can Not Be Found]</a></span></span></span></span>and when you add a row with addRowData.</p>
<p>Best Regsrds</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Thank you for the reply.</p>
<p>In my situation I don&#39;t need to edit fields. However I would like to highlight fields of a column that are less than an integer value that equals 600</p>
]]></description>
        	        	<pubDate>Mon, 28 Dec 2009 19:04:24 +0200</pubDate>
        </item>
        <item>
        	<title>tony on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13328</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13328</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It work on both cases - from the request and when you add a row with addRowData.</p>
<p>Best Regsrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 26 Dec 2009 12:10:57 +0200</pubDate>
        </item>
        <item>
        	<title>Jason on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13264</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13264</guid>
        	        	<description><![CDATA[<p>Tony:</p>
</p>
<p>When you say "inserted row", does this account for each row returned from my JSON request? Or only when a bran new record is created via the Add method?</p>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 15:18:24 +0200</pubDate>
        </item>
        <item>
        	<title>tony on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13248</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13248</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The reason that is not answerd is that this requirmend is discussed many times here and you can find them using the search button.</p>
<p>Any way you can use afterInsertRow event (do not forget to set gridview mode to false in this case)</p>
<p>You can find more about this event here:</p>
<p><a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:events" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....iki:events</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 10:10:33 +0200</pubDate>
        </item>
        <item>
        	<title>Jason on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13213</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13213</guid>
        	        	<description><![CDATA[<p>I am also looking for a solution with this. I have had a request to change not only the row color depending on a value of a certain field within the dataset, but also to have a grouping of columns be one color and another grouping be another color going top-down.</p>
]]></description>
        	        	<pubDate>Mon, 21 Dec 2009 15:16:08 +0200</pubDate>
        </item>
        <item>
        	<title>ihamouda on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13199</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13199</guid>
        	        	<description><![CDATA[<p>I can see the forum is very much active.</p>
<p>so I&#39;m wondering why nobody is answering my very simple question.</p>
<p>Any help is really appreciated.</p>
]]></description>
        	        	<pubDate>Sun, 20 Dec 2009 09:44:29 +0200</pubDate>
        </item>
        <item>
        	<title>ihamouda on changing row color or font conditionally</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13170</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-row-color-or-font-conditionally#p13170</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>is there a way to change the background colour or the font-weight of a row conditionally, according to the data of a column in it?</p>
]]></description>
        	        	<pubDate>Fri, 18 Dec 2009 20:32:19 +0200</pubDate>
        </item>
</channel>
</rss>