Forum


11:54

02/12/2009

Hi all
I am discovering jqGrid and have some questions which I am unable to find answers in this forum, so I hope I will receive some help from advanced users.
1 - How can I disable the collapse button for the grid in header section ?
2 - How can I dynamically modify header columns of the subgrid ?
3 - How can I set autowidth for the subgrid ?
4 - Is there a way to have only one subgrid expanded, that collapses when I click on another grid row ?
These questions are certainly easy to solve for whose who have experience in JS, which I do not have.
Many thanks in advance for kind help which will be appreciated
Cheers
Jihel
16:40

27/11/2009

Hey JiHel,
Off the top of my head I think you can:
1. set the "hidegrid" option to false to remove the collapse button - you need to have a caption for this to work.
2. You set subgrid column headers the same as you would a normal grid.
3. Set "autowidth: true" in your subgrid definition
4. Check out the subgrid demo to see how to expand and collapse subgrids. http://trirand.com/jqgrid/jqgrid.html
Most Users Ever Online: 715
Currently Online:
63 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66