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

Horizontal scroll in radgrid

2 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Soumya
Top achievements
Rank 1
Soumya asked on 07 Nov 2012, 06:56 PM
I am trying to achieve horizontal scroll in radgrid which has many columns in it.As per the documentation in the demo in 
http://http//demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx which is as given below:

"In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns (either auto-generated or declaratively set) exceeds the width of the grid".

For this I have set the width of radgrid in pixels which fits in the whole page,and is less than the width of total columns (in pixel).Hence horizontal scroll is working fine.
But the issue is that since I have set the width of radgrid in pixels,while changing the screen resolution,it doesn't fit in the whole page.

When I give width=100% for the grid,horizontal scroll is not working.

Please guide me on this so as to achieve above both scenarios.

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Soumya
Top achievements
Rank 1
answered on 09 Nov 2012, 11:57 AM
Any answer?
0
Kostadin
Telerik team
answered on 12 Nov 2012, 02:16 PM
Hello Soumya,

A possible approach is to set MasterTableView's TableLayout property to Fixed and set a width in pixels of all the columns. I prepared a sample and attached it to this forum post.

All the best,
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
Soumya
Top achievements
Rank 1
Answers by
Soumya
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or