Row Height expands to fit container in IE7

2 posts, 0 answers
  1. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 18 Dec 2009 Link to this post

    I have a RadGrid in a RadWindow as illustrated by the following code:

            <div id="DetailWindow"
                <telerik:RadWindow ID="RadWindowRealMcCoy" runat="server" VisibleOnPageLoad="false" 
                    Title="Manager Returns" Width="900px" 
                    Height="520px" Behaviors="Resize, Minimize, Close, Maximize, Move" 
                    OffsetElementID="formRealMcCoy" Left="0px" Top="0px"  
                    ShowContentDuringLoad="True" onclientclose="SaveSizeAndPosition"  
                    onunload="RadWindowRealMcCoy_Unload" VisibleStatusbar="False" OnClientDragEnd="SaveSizeAndPosition"
                    <ContentTemplate> 
                        <telerik:RadGrid ID="RadGridManagerHistory" runat="server"   
                            DataSourceID="ObjectDataSourceManagerReturns" GridLines="None" BorderStyle="None" BorderWidth="0px" 
                            CssClass="Ironwood" onitemdatabound="RadGridManagerHistory_ItemDataBound"
                            <MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSourceManagerReturns"
                            <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                            </RowIndicatorColumn> 
     
                            <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                            </ExpandCollapseColumn> 
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="PeriodDate" DataFormatString="{0:MMM yy}"  
                                        DataType="System.DateTime" DefaultInsertValue="" HeaderText="Date"  
                                        SortExpression="PeriodDate" UniqueName="PeriodDate"
                                        <ItemStyle Wrap="False" HorizontalAlign="Center" /> 
                                        <HeaderStyle HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridNumericColumn DataField="PriorMonthEndBalance"  NumericType="Currency" 
                                        HeaderText="Prior Month End Cap." SortExpression="PriorMonthEndBalance"  
                                        DataFormatString="{0:C0}" UniqueName="PriorMonthEndBalance"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="ContributionsWithdrawals"  NumericType="Currency" 
                                        HeaderText="Contrib/Wdr" SortExpression="ContributionsWithdrawals"  
                                        DataFormatString="{0:C0}" UniqueName="ContributionsWithdrawals"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="BeginBalance"  NumericType="Currency"  
                                        HeaderText="Begin Capital" SortExpression="BeginBalance"  
                                        DataFormatString="{0:C0}" UniqueName="BeginBalance"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="TotalIncome" NumericType="Currency"  
                                        HeaderText="Inc/Loss" SortExpression="TotalIncome"  
                                        DataFormatString="{0:C0}" UniqueName="TotalIncome"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="EndBalance" NumericType="Currency"  
                                        HeaderText="End Capital" SortExpression="EndBalance"  
                                        DataFormatString="{0:C0}" UniqueName="EndBalance"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="YTDIncome" NumericType="Currency"  
                                        HeaderText="YTD Income" SortExpression="YTDIncome"  
                                        DataFormatString="{0:C0}" UniqueName="YTDIncome"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="MTDReturn" NumericType="Percent"  
                                        HeaderText="MTD ROR" SortExpression="MTDReturn"  
                                        DataFormatString="{0:P}" UniqueName="MTDReturn"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="QTDReturn" NumericType="Percent"  
                                        HeaderText="QTD ROR" SortExpression="QTDReturn"  
                                        DataFormatString="{0:P}" UniqueName="QTDReturn"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="YTDReturn" NumericType="Percent"  
                                        HeaderText="YTD ROR" SortExpression="YTDReturn"  
                                        DataFormatString="{0:P}" UniqueName="YTDReturn"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="MTDAttribution" NumericType="Percent"  
                                        HeaderText="MTD Attrib." SortExpression="MTDAttribution"  
                                        DataFormatString="{0:P}" UniqueName="MTDAttribution"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="QTDAttribution" NumericType="Percent"  
                                        HeaderText="QTD Attrib." SortExpression="QTDAttribution"  
                                        DataFormatString="{0:P}" UniqueName="QTDAttribution"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="YTDAttribution" NumericType="Percent"  
                                        HeaderText="YTD Attrib." SortExpression="YTDAttribution"  
                                        DataFormatString="{0:P}" UniqueName="YTDAttribution"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                    <telerik:GridNumericColumn DataField="Allocation" NumericType="Percent"  
                                        HeaderText="Allocation" SortExpression="Allocation"  
                                        DataFormatString="{0:P}" UniqueName="Allocation"
                                        <ItemStyle Wrap="False" HorizontalAlign="Right" /> 
                                        <HeaderStyle HorizontalAlign="Right" /> 
                                    </telerik:GridNumericColumn> 
                                </Columns> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
                    </ContentTemplate> 
                </telerik:RadWindow>         
            </div> 
     

    When I display this window in any browser other than IE7, it displays as I want it to. However in IE7, it displays with the rows expanding to occupy the entire height of the window. See the attached images. Is there a workaround to prevent the rows from expanding?

  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 19 Dec 2009 Link to this post

    Hi neebs,

    Please check whether the RadGrid MasterTableView inherits a 100% height style from somewhere. This is the only way to get such a layout.

    The problem can be easily workarounded with CSS:

    .rgMasterTable
    {
           height: auto !important;
    }

    However this will not show where the problem comes from.


    Regards,
    Dimo
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top