Set ScrollbarsMode to specific scrollbar

1 Answer 127 Views
General Discussions
MaiK
Top achievements
Rank 1
Iron
MaiK asked on 19 Jul 2021, 11:08 AM

Hi,

 

I want to set to one RadGridView's vertical scrollbar normal mode.

Something like that but targeting to only one scrollbar.

FluentPalette.Palette.ScrollBarsMode = Telerik.Windows.Controls.Theming.ScrollViewerScrollBarsMode.Normal;

How can I achieve that? Is that possible?

 

Regards!


 

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 19 Jul 2021, 01:19 PM

Hello MaiK,

To change the scrollbar mode of a specific scrollbar you could set it as a style to the wanted grid as follows:

<telerik:RadGridView.Resources>
    <Style TargetType="ScrollBar">
        <Setter Property="helpers:ThemeHelper.ScrollBarsMode" Value="Normal"> 
        </Setter>
     </Style>
</telerik:RadGridView.Resources>
Setting the ThemeHelper.ScrollBarsModel as shown, allows you to modify the appearance of a specific control without the need to alter its control template.

Please take a look at the following documentation about ThemeHelper.

I am also attaching an example project for you to test out.

Regards,
Stenly
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
MaiK
Top achievements
Rank 1
Iron
Answers by
Stenly
Telerik team
Share this question
or