<?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: Select parent row where expand subgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/select-parent-row-where-expand-subgrid</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/select-parent-row-where-expand-subgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>angelobadellino on Select parent row where expand subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-parent-row-where-expand-subgrid#p27100</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-parent-row-where-expand-subgrid#p27100</guid>
        	        	<description><![CDATA[</p>
<p>I have a JQGRid with two hierarchical level. I want to perform row selection when I expand a subgrid from the parent, because if I click on the <em>plus </em>icons, the row of the master grid is not selected.&#160;</p>
<p>I am trying to fire this code whene the sub grid is expanded, but it doers not work:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit878' value='Select Code' data-codeid='sfcode878' /></p>
<div class='sfcode' id='sfcode878'>
<p>function showSubGrid(subgrid_id, row_id)</p>
<p>{</p>
<p><span style=&#34;white-space: pre;&#34;> </span>jQuery(&#34;#&#60;%= jqGrid.ClientID %&#62;&#34;).setSelection(row_id, true);</p>
<p><span style=&#34;white-space: pre;&#34;> </span>showSubGrid_jqGrid(subgrid_id, row_id);</p>
<p>} &#160; &#160;</p>
</div>
<p>This javascript function is fired whene the subgrid is expanded from the parent. Here is my server side code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5017' value='Select Code' data-codeid='sfcode5017' /></p>
<div class='sfcode' id='sfcode5017'>
<p>&#60;trirand:JQGrid ID=&#34;jqMasterGrid&#34; runat=&#34;server&#34; Height=&#34;400px&#34; AutoWidth=&#34;False&#34; OnSorting=&#34;jqMasterGrid_OnSorting&#34;&#62;</p>
<p>&#60;Columns&#62;</p>
<p>&#60;trirand:JQGridColumn DataField=&#34;COD_VALUTAZIONE&#34; Width=&#34;220&#34; HeaderText = &#34;Codice Valutazione&#34; PrimaryKey=&#34;True&#34; Sortable=&#34;True&#34; /&#62;</p>
<p>&#60;trirand:JQGridColumn DataField=&#34;InfAsp&#34; Width=&#34;170&#34; TextAlign=&#34;Center&#34; Sortable=&#34;True&#34;/&#62;</p>
<p>&#60;trirand:JQGridColumn DataField=&#34;LineaAsp&#34; Width=&#34;170&#34; TextAlign=&#34;Center&#34; Sortable=&#34;True&#34;/&#62;</p>
<p>&#60;trirand:JQGridColumn DataField=&#34;SuperAsp&#34;  Width=&#34;170&#34; TextAlign=&#34;Center&#34; Sortable=&#34;True&#34;/&#62;</p>
<p>&#60;trirand:JQGridColumn DataField=&#34;Eccellente&#34; Width=&#34;170&#34; TextAlign=&#34;Center&#34; Sortable=&#34;True&#34;/&#62;</p>
<p>&#60;/Columns&#62;</p>
<p>&#60;ToolBarSettings</p>
<p>ShowAddButton=&#34;false&#34; ShowDeleteButton=&#34;false&#34; ShowEditButton=&#34;false&#34; ShowRefreshButton=&#34;false&#34;</p>
<p>ShowSearchButton=&#34;false&#34; ShowViewRowDetailsButton=&#34;false&#34; ToolBarPosition=&#34;Hidden&#34; ShowSearchToolBar=&#34;False&#34; ShowInlineDeleteButton=&#34;False&#34; ShowInlineEditButton=&#34;True&#34;  /&#62;</p>
<p>&#60;HierarchySettings HierarchyMode=&#34;Parent&#34;  /&#62;</p>
<p>&#60;ClientSideEvents SubGridRowExpanded=&#34;showSubGrid&#34;/&#62;</p>
<p>&#60;ClientSideEvents LoadComplete=&#34;jqLoadComplete&#34;&#62;&#60;/ClientSideEvents&#62;</p>
<p>&#60;PagerSettings PageSize=&#34;2000&#34; /&#62;</p>
<p>&#60;/trirand:JQGrid&#62;</p>
</div>
<p>Can you please help?</p>
]]></description>
        	        	<pubDate>Thu, 09 Aug 2012 17:47:35 +0300</pubDate>
        </item>
</channel>
</rss>