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

Grid has wrong height when loading

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 10 Jan 2009, 07:51 PM
Hello,

Telerik RadGrid is working very nicely in our project, but we have one problem. 

We set the grid height to a fixed value, but when the grid loads it is first shown with much smaller height and after about one second the grid gets it's full height. This also happens sometimes when we use AJAX to go to another grid-page.

Especially in IE it often takes about 1 to 2 seonds which is quite annoying.

A dirty fix is this CSS:
.GridDataDiv_Office2007 {
height:{xx}px !important;
}

But this is too hackish of course. If i set the grid to a fixed height it should set GridDataDiv_Office2007 to a fixed height as well, not?
Any suggestions?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Jan 2009, 07:57 AM
Hi Jan,

The observed behavior is expected when using RadGrid scrolling with static headers. In order to prevent it, you should remove the cotnrol's Height property and set ScrollHeight instead (in ClientSettings > Scrolling)

Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Jan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or