I have a scrollable grid that I am using to get input from the user (uses a GridClientSeledColumn to do so):
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?
<
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?