<?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: Hide plus image subgrid if no data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data</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/hide-plus-image-subgrid-if-no-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>josepk on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6519</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6519</guid>
        	        	<description><![CDATA[<p>PROBLEM SOLVED.</p>
<p>I have found the problem, in my page I have 2 grids. When you insert rows in the first grid they are saved in the serve.</p>
<p>But in the second grid I load the data from the server, but the data of grid is still loaded and there is a problem with the second grid and images id or something else.</p>
<p>If I clear the data of the first grid after saving on server, all works perfect.</p>
</p>
<p>Thanks.</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 04:49:55 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6513</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6513</guid>
        	        	<description><![CDATA[<p>Rectification,</p>
<p>It don&#39;t&#160; work 100% has some strange issues.</p>
<p>$(&#8221;td.sgcollapsed&#8221;,&#8221;#&#8221;+rowid).empty().unbind(&#39;click&#39;);</p>
<p>If I left this solution, then when the grid is reload the image of first row isnt deleted.</p>
</p>
<p>I keep on looking for a solution.</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 03:08:47 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6512</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6512</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I have tried your solution in more detail and I realised that in the first time it works correclty, but when the grid is reload with new data, then the first row isnt erase de plus image, but If I put the next it works for the first and next reloades.</p>
<p>rowid-1</p>
<p>$("td.sgcollapsed","#"+rowid-1).empty().unbind(&#39;click&#39;);</p>
</p>
<p>I don&#39;t know if it is correct, but it works.</p>
<p>thanks.</p>
<p>Josep Escofet.</p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 02:50:44 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6511</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6511</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I have tried your solution and it works, but I have a minor problem:</p>
<p>On event : loadComplete: function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; isSubgridData = jQuery("#gridGastos").getUserData();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>I get an array of true, false elements, one for each row that indicate if there is more info to fetch when user click the image.</p>
<p>The problem is when I use this array into the afterInsertRow event, it says me that isSubridData is not defined.</p>
<p>afterInsertRow: function(rowid, aMasterRow) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (isSubgridData[rowid-1] == "false"){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("td.sgcollapsed","#"+rowid).empty().unbind(&#39;click&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; },</p>
<p>but if I put : isSubgridData = jQuery("#gridGastos").getUserData();</p>
<p>in the afterInsertRow then it works, but I don&#39;t think is 100% correct, becouse I am fetching the array on every row and It is not necesary.</p>
</p>
<p>Any idea?</p>
<p>Thanks in Advance.</p>
<p>Josep Escofet</p></p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 02:18:54 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6510</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6510</guid>
        	        	<description><![CDATA[<p>Tanks for the answer,</p>
<p>I don&#39;t have the information,this is searched when you click the plus image, but I have the userData an array telling me what row will held information. I am going to try your solution with my userData array.</p>
</p>
<p>thanks.</p>
</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 01:40:59 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6489</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6489</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There was a similar post but.</p>
<p>If you have record (field) in the master where you have information about the children in the subgrid you can use afterInsertRow to clear the plus for the subgrid something like (suppose you have field childrecords in colModel)</p>
<p>afterInsertRow: function(rowid, aMasterRow) {<br />if(parseInt(aMasterRow.childrecords,10) === 0) {<br />// remove the plus from subgrid<br />$("td.sgcollapsed","#"+rowid).empty().unbind(&#39;click&#39;);<br />}<br />}<br />If you do not want to remove the plus just use unbind.</p>
<p>Enjoy</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 05 May 2009 08:55:52 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Hide plus image subgrid if no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6441</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-plus-image-subgrid-if-no-data#p6441</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a grid with several rows that can have additional data which must be displayed as a subgrid.</p>
<p>The problem is:</p>
<p>If the row hasn&#39;t data I want the plus image dissapear.</p>
<p>If it is not possible, I want that if you click to plus image has not effect and there is no load url with empty content.</p>
<p>is it possible?</p>
</p>
<p>thanks in advance.</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Mon, 04 May 2009 02:44:18 +0300</pubDate>
        </item>
</channel>
</rss>