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

Radgrid Min Height When Scrolling Turned Off

0 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Iron
Steven asked on 26 Apr 2017, 07:52 AM

When I turn off scrolling ".rgDataDiv" no longer gets emitted, and I lose the ability to set a minimum height.  If I have no records I'm OK because I can use the NoRecords template to set an empty table.  If I have over a page of rows, I'm good because I turned off scrollbars.  BUT, if I only have a few rows, the grid stops after the last row, leaving most of the page blank.  Without ".rgDataDiv" I can't set a min height.  Any Ideas?

<telerik:RadGrid runat="server" ID="RadGridIncomeOfficeRetailRentRoll" CellSpacing="0" GridLines="None"
    DataSourceID="ObjectDataSourceRetailIndusOfficeRentRoll" OnItemCommand="RadGridRentRollROI_ItemCommand"
    AllowSorting="True" AutoGenerateColumns="False" PageSize="20" AllowPaging="true" AllowFilteringByColumn="false"
AllowMultiRowSelection="false" HeaderStyle-Font-Bold="true" CssClass="GridHeightSet">
                    <ClientSettings EnableRowHoverStyle="True">
                        <Scrolling AllowScroll="False" UseStaticHeaders="True" SaveScrollPosition="True" />
                        <Selecting AllowRowSelect="true" />
                    </ClientSettings>
 
                    <MasterTableView DataSourceID="ObjectDataSourceRetailIndusOfficeRentRoll" OverrideDataSourceControlSorting="true"
                        DataKeyNames="TRRD_ID" CommandItemDisplay="None" EnableNoRecordsTemplate="True">
                <NoRecordsTemplate>
                    <table width="100%" border="0" cellpadding="20" cellspacing="20" style="height: 250px;">
                        <tr>
                            <td></td>
                        </tr>
                    </table>
                </NoRecordsTemplate>

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Steven
Top achievements
Rank 1
Iron
Share this question
or