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
How to show initially hidden column?
16/07/2008
05:03
Avatar
pako
Member
Members
Forum Posts: 33
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Hi Tony, I have a problem, I use the newest 3.2 version, and I have one column in colModel with hidden:true attribute (to hide that column on load) and I have a link to show that column
( jQuery(”#hd”).click( function() { jQuery(”#list”).hideCol(”date”); });   where hd is id of that link)…so, this doesn't work.

When i delete attibute hidden:true and add next link with “hideCol” everything works fine, but I want that column should be hidden on start. Do you have any idea how to do that?

regards Paul

16/07/2008
05:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Pako hideCol hides the column. In your case you try to heide allready

hidden column. Instead use

( jQuery(”#hd”).click( function() { jQuery(”#list”).showCol(”date”); });

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.

16/07/2008
05:32
Avatar
pako
Member
Members
Forum Posts: 33
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Yes I know that, I wrote about hideCol only to tell you that this two buttons works fine, but when some column have hidden:true attribute and click on links with showCol, then this doesn't work (column is still hidden).

16/07/2008
05:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

It works for me. Chack the names or if you applay this button to the right

grid - I mean does the grid with such name exists

Reagrds

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.

16/07/2008
05:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Sorry the right is

does the grid with such ID exists

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.

16/07/2008
06:09
Avatar
pako
Member
Members
Forum Posts: 33
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Hmm, everything is ok, look,
- Everything is ok when I have only two buttons (showCol and hideCol) and column initially shown (without hidden:true attr in colModel)

- If I add hidden:true attr. in colModel, button with showCol doesn't work.
And for more fun, I have checked that on 3 browsers. The problem above is on FF 3.0, on IE 6.0 grid even don't load any of data, but show alert (Length of colNames <> colModel or 0!
Only on Opera that code works fine. What browser do you use?

Regards Paul

16/07/2008
06:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Paul,

You have a problem in colModel definition. Check to see if your last column

ends with , also check again the colModel and colNames definituins

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.

16/07/2008
06:37
Avatar
pako
Member
Members
Forum Posts: 33
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

I have checked, and really I have a comma after the last position in colModel, when I removed it, the problem with IE disapeared but still, don't show column with attr. hidden:true, when clicking on link showCol (only on Opera everything is ok) I have no idea what is wrong

16/07/2008
06:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

If possible send me a link to the problem, or write me to: tony at trirand dot com

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.

16/07/2008
06:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

If this is not possible please send me the html with java script code

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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