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
height or width 100%
15/07/2008
15:26
Avatar
longmaomao
Member
Members
Forum Posts: 6
Member Since:
15/07/2008
sp_UserOfflineSmall Offline

i would like to make the grid's height et width in 100%

    i have defined:  height: 100%in the options

and then  there will be nothing on the screen

when i change it to : height: 200, it works

i would like know why

thank u very much tony

16/07/2008
04:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Please set height this way

height: "100%"

width can not be set as precentage - refer to docs

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
04:39
Avatar
longmaomao
Member
Members
Forum Posts: 6
Member Since:
15/07/2008
sp_UserOfflineSmall Offline

yes, it works, thank u so much

22/08/2008
11:15
Avatar
jakajancar
Member
Members
Forum Posts: 12
Member Since:
17/08/2008
sp_UserOfflineSmall Offline

Tony, but why? Why can't width be set in %?

When I change the width of a column I can clearly see that the table is resizing within a div. Couldn't

a) this wrapper div just be set to 100% width OR

b) the table be put into the page without this div?

I have tried setting width of the wrapper div to 100%, but it's not working, probably because some JS overrides it at runtime.

22/08/2008
11:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

It can be. Use this hack before calling jqGrid. Wink

<table id="mygrid" class="scroll"></table>

JS code:

jQuery("#mygrid").width("99%");
var w = jQuery("#mygrid").width();

jQuery("#mygrid").jqGrid({

...

width: w

...

});

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.

22/08/2008
11:46
Avatar
jakajancar
Member
Members
Forum Posts: 12
Member Since:
17/08/2008
sp_UserOfflineSmall Offline

Thanks, I will check this out.

22/08/2008
11:55
Avatar
jakajancar
Member
Members
Forum Posts: 12
Member Since:
17/08/2008
sp_UserOfflineSmall Offline

One problem though, this ofcourse won't autoresize :/

22/08/2008
11:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Yes it can't be autoresized, but I think in this direction

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.

22/08/2008
12:07
Avatar
jakajancar
Member
Members
Forum Posts: 12
Member Since:
17/08/2008
sp_UserOfflineSmall Offline

So is there any other way to make it resizable other than reloading the entire form on every width change?

Basically I want a full-window popup form that would always fill the entire screen.

If not, I will delve into the jqGrid code and try to add this myself. That's why I was wondering how come you haven't done it already: are there any problems that are preventing you from just setting the wrapper to percentage width, or you just haven't gotten around to it yet?

22/08/2008
12:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Currently I'm little busy with a project and do not have enougth time to do this. If you help it will be great.

There are other modules that should be tested an published. These modules make a great step forward, but...

Thank you

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.

22/08/2008
14:56
Avatar
jakajancar
Member
Members
Forum Posts: 12
Member Since:
17/08/2008
sp_UserOfflineSmall Offline

This is a dead end. I don't understand grid.base.js one bit Cry

I guess I'll just put another wrapper around it for horizontal scrolling and make the columns non-resizable (so I don't have two horizontal scrollbars).

22/08/2008
14:56
Avatar
jakajancar
Member
Members
Forum Posts: 12
Member Since:
17/08/2008
sp_UserOfflineSmall Offline

(accidental double post, ignore)

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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