Welcome Guest Search | Active Topics | Sign In | Register

Grid size and positioning Options
Frank
Posted: Thursday, January 7, 2010 6:47:34 PM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
Hi.
I'm new in this community and so far I have enjoyed working with EO's controls.
I'm also pretty new to Web development and you'll notice that my questions are coming from a Win Apps background.

Anyway, I have few questions about the Grid control (and I think they could apply to many others):

Environment: Windows 7, Visual Studio 2008 SP1, Visual SQL Server 2005.

1) Is it possible to control the Grid WIDTH and HEIGHT relatively (ex. percent) in order to fill a certain area and to be resized when the area grows or shrinks?

2) In case 1) is possible, what happens to the PageSize property? For example if the property is set to 20 and the Grid has enough room to display more: will it? Same thing if the Grid has not enough room...

3) Same line of questions goes for the grid columns. Is it possible to control the display and for example fill the rest of the right empty space with the last column?

That's all for now and I appologize if those questions were already asked and answered but I couldn't find anything.

Thanks and regards,

Frank M.
eo_support
Posted: Thursday, January 7, 2010 8:01:15 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can use percentage width but not height. When you use percentage width, you can set one column's Width to "-1". That will instruct the column to automatically fills any remaining space.

Thanks!
Frank
Posted: Thursday, January 7, 2010 9:59:40 PM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
Thanks for the reply.
Is there however a known technic to make the height dynamic?

Frank M.
eo_support
Posted: Friday, January 8, 2010 8:14:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will have to set it explicitly with code. For example, you can call setHeight to change height on the client side:

http://doc.essentialobjects.com/library/1/jsdoc.public.control.setheight.aspx

This does not affect PageSize. If the new height is now enough to display all rows in a page, a vertical scroll bar will appear.

Thanks!
Frank
Posted: Friday, January 8, 2010 9:46:16 AM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
Thank you.

Frank M.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.