autosize and radgrid showgroupheader

2 posts, 0 answers
  1. lnu
    lnu avatar
    19 posts
    Member since:
    Aug 2012

    Posted 06 Nov 2009 Link to this post

    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


  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 11 Nov 2009 Link to this post

    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.
Back to Top