Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Select parent row where expand subgrid
09/08/2012
17:47
Avatar
angelobadellino
Italy
New Member
Members
Forum Posts: 1
Member Since:
09/08/2012
sp_UserOfflineSmall Offline

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 plus icons, the row of the master grid is not selected. 

I am trying to fire this code whene the sub grid is expanded, but it doers not work:

function showSubGrid(subgrid_id, row_id)

{

jQuery("#<%= jqGrid.ClientID %>").setSelection(row_id, true);

showSubGrid_jqGrid(subgrid_id, row_id);

}    

This javascript function is fired whene the subgrid is expanded from the parent. Here is my server side code:

<trirand:JQGrid ID="jqMasterGrid" runat="server" Height="400px" AutoWidth="False" OnSorting="jqMasterGrid_OnSorting">

<Columns>

<trirand:JQGridColumn DataField="COD_VALUTAZIONE" Width="220" HeaderText = "Codice Valutazione" PrimaryKey="True" Sortable="True" />

<trirand:JQGridColumn DataField="InfAsp" Width="170" TextAlign="Center" Sortable="True"/>

<trirand:JQGridColumn DataField="LineaAsp" Width="170" TextAlign="Center" Sortable="True"/>

<trirand:JQGridColumn DataField="SuperAsp" Width="170" TextAlign="Center" Sortable="True"/>

<trirand:JQGridColumn DataField="Eccellente" Width="170" TextAlign="Center" Sortable="True"/>

</Columns>

<ToolBarSettings

ShowAddButton="false" ShowDeleteButton="false" ShowEditButton="false" ShowRefreshButton="false"

ShowSearchButton="false" ShowViewRowDetailsButton="false" ToolBarPosition="Hidden" ShowSearchToolBar="False" ShowInlineDeleteButton="False" ShowInlineEditButton="True" />

<HierarchySettings HierarchyMode="Parent" />

<ClientSideEvents SubGridRowExpanded="showSubGrid"/>

<ClientSideEvents LoadComplete="jqLoadComplete"></ClientSideEvents>

<PagerSettings PageSize="2000" />

</trirand:JQGrid>

Can you please help?

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
33 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information