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

RadGrid with scrolling enabled causes RadWindow autosize incorrectly

2 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 17 Jun 2010, 03:41 PM
I am launching a RadWindow which contains a RadGrid and some other controls.  The AutoSize property on the RadWindow is set to "true".  Results are as expected, until I add scrolling to the RadGrid.
<ClientSettings> 
   <Scrolling AllowScroll="true" UseStaticHeaders="true"/>             
</ClientSettings> 

The AutoSize re-sizes the RadWindow much larger than it needs to be.  The culprit seems to be the attribute AllowScroll="true".  When this is removed, AutoSize works correctly. 

When it is added, as the RadWindow is opening I'm noticing (very briefly) that a block of white space is allocated directly below the RadGrid which pushes the controls below further away. Then suddenly the controls re-adjust directly underneath the RadGrid properly, but the RadWindow size does not re-adjust accordingly.

Is this a known issue or are there any work-arounds?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 17 Jun 2010, 03:44 PM
Hello Patrick,

Please use ScrollHeight instead of Height for the RadGrid.

http://www.telerik.com/help/aspnet-ajax/height-vs-scrollheight.html

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
0
Patrick
Top achievements
Rank 1
answered on 17 Jun 2010, 03:51 PM
Thank you very much for your prompt reply.  That worked perfectly
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or