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
Minimize Grid Trigger
28/08/2009
10:06
Avatar
brandon
Member
Members
Forum Posts: 7
Member Since:
28/08/2009
sp_UserOfflineSmall Offline

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

28/08/2009
15:11
Avatar
brandon
Member
Members
Forum Posts: 7
Member Since:
28/08/2009
sp_UserOfflineSmall Offline

I figured out the jquery sliding issue. 

If the sliding div is position:relative, as well as other divs that are causing issues in IE, it will behave just like FF, Safari, etc.

However, I would still like to know how to click the minimize button via script.

28/08/2009
18:19
Avatar
markw65
Member
Members
Forum Posts: 179
Member Since:
30/07/2009
sp_UserOfflineSmall Offline

However, I would still like to know how to click the minimize button via script.


Looks like $(".ui-jqgrid-titlebar-close", $(mygrid)).click() should do it...

Mark

31/08/2009
06:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

01/09/2009
14:49
Avatar
brandon
Member
Members
Forum Posts: 7
Member Since:
28/08/2009
sp_UserOfflineSmall Offline

Thanks!

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information