<?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: Problem expanding row after searching</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching</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/treegrid/problem-expanding-row-after-searching/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>boogey100 on Problem expanding row after searching</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching#p21620</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching#p21620</guid>
        	        	<description><![CDATA[<p>I can confirm that this is happening to me to in jqGrid 3.8.2. Also, sometimes the data is not displayed after clicking the expand button even if there has been no search. Clicking the collapse button, then expanding again displays the data.</p>
]]></description>
        	        	<pubDate>Tue, 11 Jan 2011 14:58:49 +0200</pubDate>
        </item>
        <item>
        	<title>antoine on Problem expanding row after searching</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching#p21318</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching#p21318</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have done more investigation and I found that the HTML element for children is created in the table but display css property is set to <strong>none</strong>.</p>
<p>I have done a temporary workaround to put in gridComplete event, please let me know if it is corrected a day.</p>
</p>
<blockquote>
<p>$(".treeclick","#datagrid_produitsservices").each(function() {</p>
<p style="padding-left: 30px;">if($(this).hasClass("tree-minus")) {</p>
<p style="padding-left: 60px;">var rowid = $(this).parentsUntil(&#39;tr&#39;).parent().attr(&#39;id&#39;);</p>
<p style="padding-left: 60px;">var childrens = $("#datagrid_produitsservices&#160;td[aria-describedby=datagrid_produitsservices_parent][title="+rowid+"]").parent();</p>
<p style="padding-left: 60px;">$(childrens).css(&#39;display&#39;, &#39;&#39;);</p>
<p style="padding-left: 30px;">}</p>
<p>});</p>
</blockquote>
]]></description>
        	        	<pubDate>Thu, 16 Dec 2010 16:37:03 +0200</pubDate>
        </item>
        <item>
        	<title>antoine on Problem expanding row after searching</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching#p21282</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/problem-expanding-row-after-searching#p21282</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I&#39;m having problem expending rows in my datagrid. When the datagrid is loaded with initial data everything is working fine. All categories are listed (as root, no parent_id). If I click on the expand symbol in the row,&#160;sub rows&#160;are&#160;loaded and displayed.</p>
<p>However, if I do a search (this example is working with the filter toolbar but on another page, I have the same exact grid&#160;except&#160;using the search box), the AJAX request is done and completed. The problem is that rows are not displayed. The expand symbol is transforming into Collapse symbol but sub rows are not shown. If I click on Collapse button and again on the Expand button, this node is working and will work until they end. &#160;It must be done for all nodes.</p>
</p>
<p>jQGrid version tested: 1.7.2, 1.8.2</p>
<p>jQuery version: 1.4.2</p>
<p>jQuery UI version: 1.8.1</p>
<p>Model: Adjency</p>
<p>Datatype: JSON</p>
<p>Autoloading used: true</p>
</p>
<p><strong>Here is my grid definition:</strong></p>
<blockquote>
<p>$("#datagrid_produitsservices").jqGrid({</p>
<p style="padding-left: 30px;">datatype: "json",</p>
<p style="padding-left: 30px;">mtype:&#39;post&#39;,</p>
<p style="padding-left: 30px;">url: &#39;jx.php?module=product&#38;func=get_datagrid&#39;,</p>
<p style="padding-left: 30px;">postData: {enabled: &#39;true&#39;, pos: &#39;true&#39;},</p>
<p style="padding-left: 30px;">height: tmp_height,</p>
<p style="padding-left: 30px;">treeGrid: true,</p>
<p style="padding-left: 30px;">treeGridModel: &#39;adjacency&#39;,</p>
<p style="padding-left: 30px;">ExpandColumn : &#39;title&#39;,</p>
<p style="padding-left: 30px;">colNames:[</p>
<p style="padding-left: 60px;">&#39;#&#39;,</p>
<p style="padding-left: 60px;">&#39;Produit/Service&#39;,</p>
<p style="padding-left: 60px;">&#39;CUP&#39;,</p>
<p style="padding-left: 60px;">&#39;Actif&#39;</p>
<p style="padding-left: 30px;">],</p>
<p style="padding-left: 30px;">colModel:[</p>
<p style="padding-left: 60px;">{name:&#39;id&#39;,index:&#39;id&#39;, width:80, hidden:true, sorttype:&#39;int&#39;},</p>
<p style="padding-left: 60px;">{name:&#39;title&#39;,index:&#39;title&#39;, width:248, sortable:false,sorttype:&#39;text&#39;, search: true, searchoptions:{sopt:[&#39;aa&#39;]}},</p>
<p style="padding-left: 60px;">{name:&#39;cup&#39;,index:&#39;cup&#39;, width:100, hidden:true},</p>
<p style="padding-left: 60px;">{name:&#39;enabled&#39;,index:&#39;enabled&#39;, width:60, hidden: true}</p>
<p style="padding-left: 30px;">],</p>
<p style="padding-left: 30px;">sortname: &#39;title&#39;,</p>
<p style="padding-left: 30px;">sortorder: "asc",</p>
<p style="padding-left: 30px;">caption: "",</p>
<p style="padding-left: 30px;">viewrecords: true,</p>
<p style="padding-left: 30px;">autowidth: true,</p>
<p style="padding-left: 30px;">shrinkToFit: true,</p>
<p style="padding-left: 30px;">scrollOffset: 0,</p>
<p style="padding-left: 30px;">rowNum:0,</p>
<p style="padding-left: 30px;">gridComplete : function() {</p>
<p style="padding-left: 60px;">$("#datagrid_produitsservices td[role=&#39;gridcell&#39;][title=&#39;0,00&#39;]").html(&#39;&#39;);</p>
<p style="padding-left: 60px;">$("#datagrid_produitsservices").parent().parent(".ui-jqgrid-bdiv").css(&#39;overflow-x&#39;, &#39;hidden&#39;);</p>
<p style="padding-left: 30px;">}</p>
<p>}).filterToolbar({searchOnEnter:false});</p>
</blockquote>
<p style="padding-left: 30px; ">&#160;</p>
<p><strong>Here are&#160;example&#160;of data received&#160;initially:</strong></p>
<blockquote>
<p>{"rows":[{"id":"102","cell":["102","Accessoires chevaux","","Oui","0","NULL","false","false"]},{"id":"99&#8243;,"cell":["99","Accessoires oiseaux","","Oui","0","NULL","false","false"]}, &#8230;lot_of_data&#8230;],"page":"1&#8243;,"total":"1&#8243;,"records":"2382&#8243;}</p>
</blockquote>
<p><strong>Here are&#160;example&#160;of data received&#160;after searching "chat":</strong></p>
<blockquote>
<p>{"rows":[{"id":"96","cell":["96","Arbres u00e0 chat","","Oui","0","NULL","false","false"]},{"id":"88&#8243;,"cell":["88","Biscuits","","Oui","0","NULL","false","false"]}, &#8230;lot_of_data&#8230;],"page":"1&#8243;,"total":"1&#8243;,"records":"143&#8243;}</p>
</blockquote>
<p>Thanks,</p>
</p>
<p>Antoine</p>
]]></description>
        	        	<pubDate>Tue, 14 Dec 2010 18:19:39 +0200</pubDate>
        </item>
</channel>
</rss>