Forum


10:06

28/08/2009

I am using an accordian style layout where the contents of the div slideToggle (up/down) when the header is clicked. The jqGrid is found within this div.
The slide function works great in firefox/safari, etc... but obviously IE does not like select tags, images, absolute positioned divs, and does not like jqGrid either. The grid remains visible until the accordian has completely closed. I usually do an IE hack, IE detection, hide selects, absolute positioned, etc until the accordian is opened. When it is opened, I use a timeOut function and have them appear when the accordian is expanding.
I can make the grid table
$("#div").css('visibility', 'hidden');
or
setTimeout(
'$("#div").css(\\'visibility\\', \\'visible\\')', 300);
I would rather not have to do this, but rather would like to use the minimize table button at the top of table header because the slideUp("fast") is already used properly between each div tag. I have tried using several methods to trying to imitate a click to minimize it, however, no success. The a tag has a class of "ui-jqgrid-titlebar-close HeaderButton" with a role of "link".
If I am missing something here, a simple css trick (already tried overflow:hidden on the sliding div) that would allow the jqGrid to peacefully be slid up inside of the sliding div, let me know... otherwise:
Is there a way to imitate the click to minimize the jqGrid using script?
$
(".ui-jqgrid-titlebar-close").trigger("click"); <-- did not work for me.$(".HeaderButton").trigger("click"); <-- only changed the minimize triangle image
06:18

Moderators
30/10/2007

Hello,
Better is this:
$(”.ui-jqgrid-titlebar-close”, "#gbox_mygrid").click(...)
where mygrid is the id of the grid.
Regards
Tony
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.
Most Users Ever Online: 715
Currently Online:
49 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66