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

[Solved] Disabling scrolling in GridView...

4 Answers 280 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
cbondeson
Top achievements
Rank 1
cbondeson asked on 24 Feb 2010, 09:19 PM
Is there a way to disable scrolling in the grid, I would either like to handle scrolling myself or have it fit itself to the size I tell it.  Thank you.

Chris

4 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 25 Feb 2010, 07:47 AM
Hello Chris,

Here is an example how to hide the grid vertical scrollbar:
...
xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:systemWindows="clr-namespace:System.Windows.Controls;assembly=System.Windows"
....
<telerikGrid:RadGridView systemWindows:ScrollViewer.VerticalScrollBarVisibility="Hidden" ...
...

You can check also my blog post for more info about possible custom scrolling approach.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
cbondeson
Top achievements
Rank 1
answered on 25 Feb 2010, 05:39 PM
Thank you that is what I needed though now I have a different issue: the headers for my grids are not wrapping even though I have set the TextWrapping to Wrap.  Do you have to set the width of the column to make the header text wrap?  I was hoping that it would try to shrink the columns as small as it could if I disabled the scrolling.  Do you have any other suggestions?
0
Accepted
Vlad
Telerik team
answered on 02 Mar 2010, 09:07 AM
Hello Chris,

In this case you do not need to set VerticalScrollBarVisibility - you can use Width="*" for some of your columns (or ColumnWidth="*" for the entire grid) similar to this demo:
http://demos.telerik.com/silverlight/#GridView/Totals

All the best,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
cbondeson
Top achievements
Rank 1
answered on 02 Mar 2010, 11:58 PM
Thank you that answers my question though setting the ColumnWidth did not work I has to set the Width directly on the column for it to take effect.
Tags
GridView
Asked by
cbondeson
Top achievements
Rank 1
Answers by
Vlad
Telerik team
cbondeson
Top achievements
Rank 1
Share this question
or