<?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: Hierarchy table tree node  only can expand,but can't shrink</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/hierarchy-table-tree-node-only-can-expandbut-cant-shrink</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/bugs/hierarchy-table-tree-node-only-can-expandbut-cant-shrink/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Eric Wang on Hierarchy table tree node  only can expand,but can't shrink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/hierarchy-table-tree-node-only-can-expandbut-cant-shrink#p18959</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/hierarchy-table-tree-node-only-can-expandbut-cant-shrink#p18959</guid>
        	        	<description><![CDATA[<p>In some situation, the Hierarchy table tree node &#160;only can expand,but can&#39;t shrink, the firefox console always report the $b.p is undefined when I click the tree node, I use the ASP.NET MVC jqgrid, I found the reason cause this issue is the sub grid set the <span style="color: #ff0000;">ShowSearchToolBar = true</span>, if I remove the statement in sub grid setup code, it work fine.</p>
<p>The following code is my hierarchy table setting for reference.</p>
</p>
<p>public SurveyQuestionGrid()</p>
<p>{</p>
<p>QuestionGrid = new JQGrid</p>
<p>{</p>
</p>
<p>Width = Unit.Pixel(740),</p>
<p>ToolBarSettings = new ToolBarSettings</p>
<p>{</p>
<p>ToolBarAlign = ToolBarAlign.Left,</p>
<p>ToolBarPosition = ToolBarPosition.Bottom,</p>
<p>ShowDeleteButton = true,</p>
<p>ShowRefreshButton = true,</p>
<p>ShowSearchButton = true,</p>
<p>ShowSearchToolBar = true,</p>
<p>ShowAddButton = true,</p>
<p>ShowEditButton = true</p>
</p>
<p>}</p>
<p>,</p>
<p>SearchDialogSettings = new SearchDialogSettings { MultipleSearch = true }</p>
<p>};</p>
<p>var questionColumns = new List&#60;JQGridColumn&#62;</p>
<p>{</p>
<p>new JQGridColumn{DataField = "QuestionID", Visible = false,PrimaryKey = true},</p>
<p>new JQGridColumn</p>
<p>{</p>
<p>DataField = "Question"</p>
<p>,Searchable = true</p>
<p>,DataType = typeof(string)</p>
<p>,SearchToolBarOperation = SearchOperation.Contains</p>
<p>,Editable = true</p>
<p>,EditType = EditType.TextArea</p>
<p>,EditFieldAttributes = {new JQGridEditFieldAttribute{Name = "style",Value = "width:150px;height:50px"} }</p>
<p>},</p>
</p>
<p>};</p>
<p>QuestionGrid.Columns = questionColumns;</p>
</p>
<p>OptionGrid = new JQGrid</p>
<p>{</p>
</p>
<p>Width = Unit.Percentage(100),</p>
<p>Height = Unit.Percentage(100),</p>
<p>ToolBarSettings = new ToolBarSettings</p>
<p>{</p>
<p>ToolBarAlign = ToolBarAlign.Left,</p>
<p>ToolBarPosition = ToolBarPosition.Bottom,</p>
<p>ShowDeleteButton = true,</p>
<p>ShowRefreshButton = true,</p>
<p>ShowSearchButton = true,</p>
<p><span style="color: #ff0000;">ShowSearchToolBar = true, //if insert this statement the error will be hit, if remove it, everything work fine.&#160;</span></p>
<p>ShowAddButton = true,</p>
<p>ShowEditButton = true</p>
<p>}</p>
<p>,</p>
<p>SearchDialogSettings = new SearchDialogSettings { MultipleSearch = true }</p>
<p>};</p>
<p>var optionColumns = new List&#60;JQGridColumn&#62;</p>
<p>{</p>
<p>new JQGridColumn{DataField = "OptionID", Visible = false,PrimaryKey = true},</p>
<p>new JQGridColumn</p>
<p>{</p>
<p>DataField = "QuestionOption1"</p>
<p>,Searchable = true</p>
<p>,DataType = typeof(string)</p>
<p>,SearchToolBarOperation = SearchOperation.Contains</p>
<p>,Editable = true</p>
<p>,EditType = EditType.TextArea</p>
<p>,EditFieldAttributes = {new JQGridEditFieldAttribute{Name = "style",Value = "width:150px;height:50px"} }</p>
<p>}</p>
</p>
<p>};</p>
<p>OptionGrid.Columns = optionColumns;</p>
<p>}</p>
<p>Last, thank you for your effort on this plugin, it helps me a lot.&#160;</p>
<p>Best regards</p>
<p>Eric Wang</p></p>
]]></description>
        	        	<pubDate>Wed, 04 Aug 2010 07:44:34 +0300</pubDate>
        </item>
</channel>
</rss>