|
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.
|
|
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!
|
|
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.
|
|
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.aspxThis 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!
|
|
Rank: Member Groups: Member
Joined: 5/2/2008 Posts: 16
|
Thank you.
Frank M.
|
|