PDA

View Full Version : Grid Panel size



coooolmagic
25 Jun 2010, 1:50 AM
Hi all

how can I define Grid / Grid Panel size in % rather then fixed.
I want to resize grid according to the page size.

thnaks

wm003
25 Jun 2010, 2:12 AM
layout:'fit'

Animal
25 Jun 2010, 2:20 AM
The question is too open ended.

Resize the grid?

As what, the west region of a border layout? In a popup window? In an accordion? In a TabPanel?

coooolmagic
25 Jun 2010, 2:38 AM
sorry, actualy i have a simple JSP where rendering a Grid.

Just need to make sure that grid is displayed in ratio of the page. i.e. if use resize the page, size of Grid should be resized as well.

I tried layout:'fit' but this only fix HEADER line of Grid Panel, rest grid statys same size.

also i don't see layout property of any object.... in documentation

Animal
25 Jun 2010, 3:09 AM
Oh, so you have a legacy "web page" and you render the GridPanel into a <div>?

Not a web application which manages the browser window with a layout?

Then use the FitToParent plugin.

(On your last sentence. Look harder)