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

scrollable grid changes page dimensions with more rows

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve LaForge
Top achievements
Rank 1
Steve LaForge asked on 30 Jul 2010, 06:00 PM
I have a scrollable grid that I am using to get input from the user (uses a GridClientSeledColumn to do so):

<telerik:RadGrid ID="gridEntitiesAndCCs" runat="server" AllowSorting="True" AllowMultiRowSelection="true" 
        AutoGenerateColumns="False" GridLines="None" Height="150" Width="100%" EnableViewState="false">
        <MasterTableView DataKeyNames="FacilityID,CostCtr" AllowMultiColumnSorting="true">
          <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" >
              <HeaderStyle Width="25" />
              <ItemStyle Width="25" />
            </telerik:GridClientSelectColumn>
            <telerik:GridBoundColumn DataField="FacilityName" HeaderText="Facility" 
              SortExpression="FacilityName" UniqueName="FacilityName">
              <HeaderStyle Width="150" />
              <ItemStyle Width="150" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CostCtr" HeaderText="Cost Center" 
              SortExpression="CostCtr" UniqueName="CostCtr">
              <HeaderStyle Width="100" />
              <ItemStyle Width="100" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DeptName" HeaderText="Dept Name" 
              SortExpression="DeptName" UniqueName="DeptName">
            </telerik:GridBoundColumn>
          </Columns>
        </MasterTableView>
        <ClientSettings EnablePostBackOnRowClick="false">
          <Scrolling AllowScroll="true" UseStaticHeaders="true" />
          <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
        </ClientSettings>
      </telerik:RadGrid>

but what happens is that if the database query returns 10 rows,  grid is scrollable, but the page itself is not.  However, if I increase the number of rows returned (select top ?? ...) from the database, the grid stays the same size, but the page itself becomes scrollable.  As the number of rows that are returned from the query increases, so does the physical page size.

The attached screen images show what happens when the database query returns 10, 30 and 60 rows.

I have set EnableViewState = false in the grid.  It seems to me that the number of rows returned should not impact the dimensions of the page itself, especially since the grid size does not change.

Is there a way to eliminate this?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 05 Aug 2010, 10:37 AM
Hi Steve,

Our system indicates that you have opened a support ticket concerning the same issue. In order to avoid duplicate posts, I suggest that we continue the communication in the support ticket.

Greetings,
Tsvetina
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
Tags
Grid
Asked by
Steve LaForge
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or