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

Showing Horizontal scrollbar

6 Answers 596 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Narendra
Top achievements
Rank 1
Narendra asked on 09 Aug 2010, 09:23 AM
Hi,

How can show Horizontal scrollbar only on radgridview using property or method?

Thanks,
-Narendra

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Aug 2010, 09:28 AM
Hi,

 The grid will show the horizontal scrollbar automatically when you have enough columns to scroll.

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
Narendra
Top achievements
Rank 1
answered on 09 Aug 2010, 09:43 AM
how can control the horizantal scrool behavior. some times i dont want to show the scrool bar.

Is there any property which controls the behavior for horizantal scroolbar?

Thanks,
-Narendra

0
Vlad
Telerik team
answered on 09 Aug 2010, 09:51 AM
Hello,

 You can use ScrollViewer.HorizontalScrollBarVisibility attached property for the grid. For example:

<telerik:RadGridView ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Hidden" />

Sincerely yours,
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
Narendra
Top achievements
Rank 1
answered on 09 Aug 2010, 10:13 AM
Thanks for the instant response.

Can you tell me, how can do the same in code behind file i.e. .CS file?

Thanks,
-Narendra
0
Accepted
Vlad
Telerik team
answered on 09 Aug 2010, 11:43 AM
Hello ,

You can set this like any other attached property:

RadGridView1.SetValue(ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);

Kind regards,
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
Narendra
Top achievements
Rank 1
answered on 09 Aug 2010, 12:31 PM
Thanks, it worked like a magic.
Tags
GridView
Asked by
Narendra
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Narendra
Top achievements
Rank 1
Share this question
or