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_Related Related Topics sp_TopicIcon
Multiple expand's subgrid buttons
12/03/2012
12:59
Avatar
Luigino
Member
Members
Forum Posts: 47
Member Since:
25/10/2008
sp_UserOfflineSmall Offline

Hello Tony and all,

I have a table like:

create table STEPS (

ID int(8) NOT NULL PRIMARY KEY,

DESCRIPTION varchar(255) NOT NULL,

REF_ID_YES int(8)

REF_ID_NO int(8)

)

so since those REF_ID_YES and REF_ID_NO would connect to another step.

I saw in the documentation there are no options for colmodel to obtain a custom expand button so I could associate that button to each new subgrid since I saw there are two methods: subGridRowExpanded and subGridRowCollapsed which would show just an expand button at begin of the row.

So is it possible to add in each jqGrid's row multiple expand buttons so if I want to add/view another step it can be connected to those ref_id_yes or ref_id_no?... Like having two subgrids in the same level...

I am pretty sure that would be really useful also for who wants to manage nested informations like a tree..

Thanks a lot in advance for your availability,

Ciao

Luigi

15/03/2012
19:09
Avatar
Luigino
Member
Members
Forum Posts: 47
Member Since:
25/10/2008
sp_UserOfflineSmall Offline

Hello tony and everyone....

about my previous question I solved by myself just creating two empty columns in the colmodel so I could put in the cell:

jQuery("#mysubgrid").jqGrid('setCell', 1, 'Action_Yes', fnExpand);

Just now I figured when I expand the row of main grid showing the subgrid, it doesn't show the navGrid toolbar of the subgrid even if I put this:

jQuery("#mygrid").html("<div><table id='mysubgrid' class='scroll'></table><div id='mypagerid'>dasdasdsad</div></div>");

and plus, since I am creating nested grids, then in the onClick's function of the button I append a new grid like:

jQuery("#mysubgrid").append("<div><table id='#mysubgrid"+progressive+"' class='scroll'></table><div id='#mypager"+progressive+"'>test</div></div>");

inspecting the element with FF I see the div with "test" but it doesn't draw the navGrid...

On the other hand, if first I explode the subgrid, then next subgrids would be appended BETWEEN main subgrid's row and the navGrid of main subgrid instead to be appended AFTER the main subgrid.

Any direction/trick would be appreciate.

Thanks

Ciao,

Luigi

16/03/2012
10:32
Avatar
Luigino
Member
Members
Forum Posts: 47
Member Since:
25/10/2008
sp_UserOfflineSmall Offline

About navGrid I solved it by myself....just forgot to put pager:"#pager" in grid's options....

But still I'd like to append next nested subgrids AFTER the first subgrid inside main grid because actually it would be appended between the row and the navgrid... any suggest would be appreciated...

thanks again to all

Ciao,

Luigi

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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