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

autosize and radgrid showgroupheader

1 Answer 79 Views
Window
This is a migrated thread and some comments may be shown as answers.
lnu
Top achievements
Rank 1
lnu asked on 06 Nov 2009, 03:04 PM
Hello,

I have page which contains only a radgrid. This page is displayed through the following radwindow.
 <telerik:RadWindow ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" 
                                NavigateUrl="../Client/ForecastsSelect.aspx" runat="server" ID="wndForecastSelect" Modal="true" 
                                AutoSize="true" Animation="FlyIn" OnClientClose="OnForecastClose" Behaviors="Close"
                            </telerik:RadWindow> 

The grid in the popup page:
        <telerik:RadGrid runat="server" DataSourceID="SqlDataSource1" GridLines="None"  
            ShowGroupPanel="True" AllowPaging="True"
<MasterTableView datasourceid="SqlDataSource1"
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
</MasterTableView> 
            <clientsettings allowdragtogroup="True"
            </clientsettings> 
        </telerik:RadGrid> 


If I set ShowGroupPanel to false on the grid, the window is well resized. But if the ShowGroupPanel is set to true, there is an extra blank area at the bottom of the window. You can see it in attachments.

Do you have a fix for that?

best regards,

Laurent


1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 11 Nov 2009, 12:24 PM
Hello lnu,

I examined the setup you describe and I was able to reproduce the problem. The autosize functionality relies on calculating the size of the content page. However, the group panel does not have size if the grid does not have such explicitly set and those resizings of the content elements which are left to free size influence the autosize during the caluclations. The easiest solution I can suggest in this case is to set explicit width to the grid and its mastertableview - this will "inform" the autosize how to resize the RadWindow. When I set Width="400" for the grid everything started working as expected on my side.

Let us know whether this solution works for you.

Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
lnu
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or