<?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: Disable + button for empty subgrid not working well.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/disable-button-for-empty-subgrid-not-working-well</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/disable-button-for-empty-subgrid-not-working-well/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dams on Disable + button for empty subgrid not working well.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disable-button-for-empty-subgrid-not-working-well#p27016</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disable-button-for-empty-subgrid-not-working-well#p27016</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I seek this solution.</p>
</p>
<p>Thank you for your help.</p>
]]></description>
        	        	<pubDate>Wed, 25 Jul 2012 12:30:42 +0300</pubDate>
        </item>
        <item>
        	<title>nelsonm on Disable + button for empty subgrid not working well.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disable-button-for-empty-subgrid-not-working-well#p26203</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disable-button-for-empty-subgrid-not-working-well#p26203</guid>
        	        	<description><![CDATA[<p>hi,</p>
</p>
<p>I researched and found some code defined by Tony for disabling the subgrid "+" buttons for rows who&#39;s subgrids are empty.</p>
</p>
<blockquote>
<p><span style="color: #000000;">&#160;{name:&#39;ChildRecords&#39;,&#160;&#160; hidden:true, sortable:false, editable:false,<br />&#160; ],</span></p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;url:&#160;&#160;&#160; &#39;php/customertab-script.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;editurl:&#39;php/customertab-script.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;POST&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,</p>
<p><span style="color: #000000;"><br />&#160;&#160; &#160;&#160;&#160; &#160;afterInsertRow: function(rowid, rowdata,rowelem) {if(parseInt(rowdata.ChildRecords,10) === 0){$(&#39;#&#39;+rowid+&#39; td.sgcollapsed&#39;,&#39;#tab4-grid&#39;).unbind(&#39;click&#39;).html(&#39;&#39;);}},</span></p>
</blockquote>
<p>It works but when you click on the disabled area where the "+" button used to be, the "+" button comes back and still allows me to open an empty subgrid.</p>
</p>
<p>Tony also had another example that does not require a "ChildRecords" field:</p>
<blockquote>
<p>afterInsertRow: function(rowid,rowdata,rowelem) {$(&#39;#&#39;+rowid+&#39; td&#39;).eq(0).unbind(&#39;click&#39;).html(&#39;&#39;);},</p>
</blockquote>
<p>but i couldn&#39;t get that one to work correctly either.</p>
</p>
<p><strong>I don&#39;t mind if i can still click on the hidden "+" button area and open empty subgrids.&#160; What , I&#39;d like for the hidden "+" button to stay hidden.&#160; Is there a way to fix this?</strong></p>
]]></description>
        	        	<pubDate>Fri, 23 Mar 2012 02:57:54 +0200</pubDate>
        </item>
</channel>
</rss>