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

Grid doesn't repaint properly if it's in a hidden tab when browser resized

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron Michael Zettlemoyer
Top achievements
Rank 1
Ron Michael Zettlemoyer asked on 20 May 2010, 06:21 PM
I have a RadGrid inside a RadMultiPage and RadTabStrip.  It's in the 2nd tab, which is not visible on page load.  But when the user first switches to that tab the grid is rendered properly.  If I resize the browser while the grid is visible (it's width is a percent) it resizes properly.  But, if I am in a different tab and resize the browser, when I go back to the tab with the grid it is not rendered properly.  The grid is the full height that it should be but the contents are missing.  But if I resize the browser it will fix itself.

Even if I set the height and width to a fixed value, not a percent, it still does this.

I've seen it do this on a number of other occasions as well but usually I was able to fix it by making adjustments to other parts of the HTML.

I've attached a screen shot of what it looks like.  


1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 May 2010, 07:14 AM
Hello Ron,

When used with static headers, RadGrid needs to adjust its layout on the client. However, Javascript size calculations do not work if the control is inside a container with a display:none style. Here is what to do in this case:

http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-height-problems-again.aspx#751819

Sincerely yours,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Ron Michael Zettlemoyer
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or