<?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 Subgrid column icons. </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons</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-subgrid-column-icons/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>RobGMiller on Changing Subgrid column icons. </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons#p9693</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons#p9693</guid>
        	        	<description><![CDATA[<p>Thanks Tony,&#160;</p>
</p>
<p>I managed to do it in the following way on loadComplete.</p>
<p>(this grids displays only one month so the total number of rows is&#160;a minor consideration and they are not paged)</p>
</p>
<p><span> </span>for every row in the grid {</p>
<p><span style="white-space: pre;"> </span>var&#160;cp = $("#ETSMonth").getCell(rowid, &#39;flagcolumn&#39;);</p>
<p><span style="white-space: pre;"> </span>switch (cp) {</p>
<p><span style="white-space: pre;"> </span>case "Yes":</p>
<p><span style="white-space: pre;"> </span>sgImg = "ui-icon ui-icon-check" ;break;</p>
<p><span style="white-space: pre;"> </span>case "No":</p>
<p><span style="white-space: pre;"> </span>sgImg = "ui-icon ui-icon-plus" ;<span style="white-space: pre;"> </span>break;</p>
<p><span style="white-space: pre;"> </span>case "":</p>
<p><span style="white-space: pre;"> </span>sgImg = "ui-icon ui-icon-close";<span style="white-space: pre;"> </span>break;</p>
<p><span style="white-space: pre;"> </span>};</p>
<p><span style="white-space: pre;"> </span>var&#160;nn = "&#60;a href=&#39;javascript:void(0);&#39;&#62;&#60;span class=&#39; " + sgImg + "&#39;&#62;&#60;/span&#62;&#60;/a&#62;"</p>
<p><span style="white-space: pre;"> </span>$("#ETSMonth").setCell(rid, "0", nn);</p>
<p>}</p>
<div></div>
<div>I am guessing that because the subGrid selector column is not part of colModel, getCell or setCell operates on the HTML which would normally contain the cell data.&#160;</div>
<div></div>
<div></div>
]]></description>
        	        	<pubDate>Mon, 14 Sep 2009 09:44:41 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Changing Subgrid column icons. </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons#p9647</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons#p9647</guid>
        	        	<description><![CDATA[<p>Hello Rob,</p>
<p>I think replacing the icons this way will not do the job.</p>
<p>jqGrid uses UI Theming and (not) sure we are a little limited.</p>
<p>I will think how to change this (something like in tree grid where this can be configured).</p>
]]></description>
        	        	<pubDate>Sat, 12 Sep 2009 09:43:24 +0300</pubDate>
        </item>
        <item>
        	<title>RobGMiller on Changing Subgrid column icons. </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons#p9645</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-subgrid-column-icons#p9645</guid>
        	        	<description><![CDATA[<p>I&#39;d like to change the subgrid column icons to indicate the presence of subgrid data. I can test the value of a row cell to make that determination.</p>
<p>In version 3.4.2 the row data was present when&#160;addSubGridCell was called and I was able to change the graphic file depending on the state of a cell in a row.</p>
<p>With version 3.5.3 the icon is implemented through CSS so I&#39;ll have to select one of the many framework icons available. However, because of the new&#160;gridview functionality (I believe), the data is not set when addSubGridCell adds the html for the SubGrid cell.&#160;</p>
<p>Can you recommend a way of doing this that doesn&#39;t involve changing the jQgrid javascript files?&#160;</p>
<p>I thought I could loop through all the rows after the grid is created and replace the class for the SubGrid cell. If that was a viable method, how would I identify the cell and how would I change the class for the &#60;span&#62; that is set in addSubGridCell.</p>
</p>
<p>Thanks,</p>
]]></description>
        	        	<pubDate>Sat, 12 Sep 2009 08:07:04 +0300</pubDate>
        </item>
</channel>
</rss>