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

[Solved] RadGrid width scroll problem

2 Answers 271 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RJ
Top achievements
Rank 1
RJ asked on 30 Jun 2009, 02:32 PM
Migrating from .Net1.1 to .Net2.0 using Radgrid Q3 2008
I got 50 columns and all of which has its defined width.
showing and hiding of columns are dynamic.

with the previous version if I set the radgrid to width to 100% it will occupy entire page no matter what the resolution is, the grid will have its horizontal scrollbar to show 50 or less columns based on data with no problem..

Now if I set the Radgrid width to 100% with 2.0 Radgrid Q3 2008, radgrid will not have the horizontal scrollbar but instead the whole page will have it.. Grrrrrrrrr
I also put this to a panel, div etc but to no avail.. I cant control the width of the grid.. Using pixel width works but I dont want to use it for I want to get most of the space based on clients resolution. like for instance if I set the width to 1024px and if its viewed with higher resolution, it will have this huge empty space which doesnt look good. I wanted to maximize the space as much as possible.. 

Any inputs for this..

thanks in advance..


Some radgrid codes

<

 

rad:radgrid id="RadGrid" runat="server" RadControlsDir="~/RadControls/"

 

 

Height="200px" AllowMultiRowSelection="True" ForeColor="White" AllowMultiRowEdit="True" Skin="Classic"

 

 

ItemStyle-BackColor="WhiteSmoke" AlternatingItemStyle-BackColor="White" BorderStyle="None" GridLines="Both" SkinsPath="~/RadControls/Grid/Skins">

 

 

<AlternatingItemStyle Font-Size="Small" Font-Names="Arial Narrow" HorizontalAlign="Left" VerticalAlign="Middle" BorderStyle="None" CssClass="AlternatingItemRow" BackColor="White"></AlternatingItemStyle>

.....
.....

 

<

 

ClientSettings>

 

 

 

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>

 

 

 

 

 

<Resizing ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing>

 

 

 

 

 

<ClientEvents OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" OnRowCreated="RowCreated"></ClientEvents>

 

 

 

 

 

<Scrolling ScrollHeight="202px" AllowScroll="True" UseStaticHeaders="True"></Scrolling>

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

</rad:radgrid>

 

2 Answers, 1 is accepted

Sort by
0
Andrew Ryan
Top achievements
Rank 1
answered on 14 Oct 2009, 08:55 PM
Was there ever a resolution here?
0
Pavlina
Telerik team
answered on 19 Oct 2009, 02:33 PM
Hello Andrew,

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 as demonstrated in the following online demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
RJ
Top achievements
Rank 1
Answers by
Andrew Ryan
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or