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

[Solved] Grid Display problem

2 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
akeem
Top achievements
Rank 1
akeem asked on 29 Jun 2009, 07:30 PM
I have a grid which is inside a div which is hidden using the style : "display:none". I bind data to this grid serverside
and make the div containing the grid visible after a button is clicked on the page. The problem is that the grid data is covered by a gray background. and that dissapears when i resize the page. I believe that the height was probably still zero since the grid was hidden when databinding occured. Is there a way to refresh the grid jusing javascript? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 30 Jun 2009, 02:15 PM
Hi akeem,

After displaying the RadGrid, you can obtain a reference to its client object (use $find() )and call the repaint() method. This will readjust the control's layout.

Sincerely yours,
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.
0
akeem
Top achievements
Rank 1
answered on 30 Jun 2009, 02:25 PM
thanks it works perfectly now.
Tags
Grid
Asked by
akeem
Top achievements
Rank 1
Answers by
Dimo
Telerik team
akeem
Top achievements
Rank 1
Share this question
or