This is a migrated thread and some comments may be shown as answers.

Grid not resizing correctly

3 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 23 Jun 2008, 04:14 PM
Hi,

I'm currently experiencing a problem with resizing the grid control. I need the grid to dynamically resize with the page. The page is a "content page" with a master page around it.

I have to put code in the resize event of the window to ensure that the page is always at least the height of the browser window. (i.e. so that the footer of the page is always just above the browser statusbar).

The code seems to run fine on all pages. I have a problem with the grid however. On doing a full postback, the event fires corretcly with the correct height. The grid expands to the full height required, but the content only displays 6 items and shows a scrollbar. There are only 9 items in the grid on my test machine and the scrollbar shouldn't be visible as the page is about twice the required height.

Is there any way I can force the grid to redraw or refresh itself?

Regards

Bobby

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2008, 07:10 AM
0
James
Top achievements
Rank 1
answered on 24 Jun 2008, 07:34 AM
Hi,

I'm afraid that makes it even worse. Following the way your example worked, the grid now seems to occupy the correct space (as before), but the actual visuble area showing data now only shows the header and half of the 1st line of data. It does this on both a new page and on postback.

Regards

Bobby
0
Sebastian
Telerik team
answered on 26 Jun 2008, 10:47 AM
Hi Bobby,

Do you use the first project attached in the linked code library entry (see the part highlighted in orange from the first message in the thread)? The behavior you observed may happen if you set Height = 100% for the grid and its container control/the body of the page are not "stretched"/does not have explicitly set height.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
James
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or