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

Rad Grid Resize not working correctly

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BobbyOwens
Top achievements
Rank 1
BobbyOwens asked on 18 May 2009, 02:41 PM
Hi,

We currently have an application with the RadGrid on a page. The height of the grid is set dynamically through client side javascript in the resize event of the browser/page.

Occasionally, a problem occurs where the rad grid is resized to the correct height, but the internal display (i.e. the contents of the grid) can only display the column headers and about half of the 1st line of data. It doesn't seem to happen consistently.

We also have another page that has the grid's height to 96%. Sometimes on a page refresh, the same symptoms are visible.

We are on version: 2008.1.415.20 

Is anyone aware of any issues in this version?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 May 2009, 02:36 PM
Hi Bobby,

The problem with RadGrid collapsing to a very small height usually occurs when the control's height is set in percent and some of the parent elements does not have an explicit height, thus violating the CSS standards:

http://www.w3.org/TR/CSS21/visudet.html#propdef-height

In your case the problem could be that the web page contains a lot of elements (controls), which change their height on the client until the page is fully loaded, which could create troubles if the RadGrid height depends on other elements' height.

Please refer to the following pages:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-set-radgrid-height-client-side-with-javascript.aspx

http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx

http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx

In case you need further assistance, we will need a runnable standalone page, which reproduces the problem.

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
BobbyOwens
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or