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

Horizontal Scroll columns without veritcal scrolling, nor scrolling the Pager

3 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lee Nessling
Top achievements
Rank 1
Lee Nessling asked on 18 Jan 2012, 06:19 PM

Scenerio:
    

  1. Allow Scrolling of Columns within grid.  (Horizontal)
  2. Don't Scroll Rows within grid. (Vertical)
  3. Don't scroll Pager. 

 

  Using the Frozen Column Example  we turned on the scrolling.  This turns on the scrolling of the columns and rows.

<telerik:RadGrid ID="gridServiceMaster" runat="server" Width="100%" >
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True">
</Scrolling>
</ClientSettings>
<MasterTableView TableLayout="Fixed" />
</telerik:RadGrid>

   
Next, to turn off the vertical scrolling we override the height that is assigned to the inner div;

<style type="text/css">
 .rgDataDiv
 {
     height: auto !important;
 }
</style>



3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 20 Jan 2012, 12:39 PM
Hi Lee,

If you want grid pager to remains static while scrolling the grid you can set UseStaticHeaders property to true. For more information go through the following help article:
Scrolling with static headers

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Lee Nessling
Top achievements
Rank 1
answered on 20 Jan 2012, 08:21 PM
If you took a closer look at my post, you would see that is exactly what I am doing.

Use of Static = true  and Scrolling= true causes the grid to become a fixed height of "300".

I'm pointing out that with the stylesheet override, you can get a horizontal scrollbar in the grid, but the grid will grow vertically to the size demanded to show all rows without a vertical scrollbar on the grid  (yes it may show on the browser). 

This is a more desirable appearance for us.
0
Pavlina
Telerik team
answered on 21 Jan 2012, 01:56 PM
Hi,

Is there a problem here? I am afraid I can not understand if there is something which is not working here. If so, elaborate what is the exact problem, and how you expect to work.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Lee Nessling
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Lee Nessling
Top achievements
Rank 1
Share this question
or