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

Browser Scrollbars in Grid

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 10 Jan 2013, 06:59 PM
I have a grid with many columns and rows, enough that I get both horizontal and vertical scrollbars. I want the page header (the website logo, etc. at the top of the page) and the page footer (copyright info, etc. at the bottom of the page) to scroll out of view with a vertical scrollbar. But I want the RadGrid's header to always be visible to the user - scrolling up to the point that its at the top of the browser window then not scrolling out of view. And I want the first column to be frozen and not scroll out of view - it's an edit link column. I don't have a RadGrid footer. Because of the number of rows, I want to use virtual scrolling. And last, I want just 1 vertical scroll bar (both page and grid share the same scrollbar), not 2 vertical scrollbars (1 for the page and 1 for the grid). And the same for just 1 horizontal scrollbar.

It seems to me the only way to get the page header to scroll away with the scrolling of the grid, is to use the page scrollbars and not have grid scrollbars. But I don't know how to get virtual scrolling working with the page scrollbars. Am I on the right track? Does anyone have an example of something like this working?

Thank you for any suggestions.

Jason

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 15 Jan 2013, 02:57 PM
Hi Jason,

A possible approach to remove the grid horizontal scroll bar is to increase the width of the grid. You could do that by setting Width property of the grid. For instance:
<telerik:RadGrid ID="RadGrid1" runat="server"  Width="2000px">

The other solution is to remove the page scroll bar and leave the one of the grid.

Kind regards,
Kostadin
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
Jason
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or