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
when using subgrid clicking on plus image does not allow to getselectedrow from parent grid
09/11/2014
06:19
Avatar
edotom
Member
Members
Forum Posts: 5
Member Since:
23/05/2014
sp_UserOfflineSmall Offline

Hi

I found that when I need to use getGridParam("selrow") from parent grid I have to select row and then click on plus sign. If I don't select row and just click on plus sign then $("#mainGrid").getGridParam("selrow") returns null.

Is there a workaround clicking on plus sign?

Regards

Edotom

09/11/2014
14:06
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Edotom,

it's definitively not a bug. Expanding of the subgrid is not the same as selection. Many subgrid can be expanded, but no row can be selected or the selected row can have no relation to the selected row.

You don't describe what exactly you try to do. The most scenarios can be implemented by usage subgrid callbacks (see the documentation). If you need to test whether some row is expanded (the "+" icon from the subgrid column was clicked before) then you can first get <td> which contains "+" or "-" icon (the <td> is the direct child having class "ui-sgcollapsed") and then you can test whether the cell have "sgexpanded" class or "sgcollapsed" class.

Best regards
Oleg

09/11/2014
16:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

This is just addition to Oleg's post. There is a option to do this, but in this case you can get only the last expanded subgrid row.

Look at selectOnExpand option here.

Thanks Oleg.

 

Kind Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
62 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