Hello,
I'm using the telerik TreeView, which uses the default telerik style for the scrollbar. The other scrollbars in the application have the default windows style. How can I apply the default windows style to the telerik scrollbar?
I'm using the telerik TreeView, which uses the default telerik style for the scrollbar. The other scrollbars in the application have the default windows style. How can I apply the default windows style to the telerik scrollbar?
3 Answers, 1 is accepted
0
Hi Sternico,
You can edit the default ControlTemplate and remove the Telerik theme, but an easier workaround is possible:
Let me know if this approach will work for you.
Sincerely yours,
Tihomir Petkov
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.
You can edit the default ControlTemplate and remove the Telerik theme, but an easier workaround is possible:
<
ScrollViewer
Height
=
"100"
Width
=
"100"
HorizontalScrollBarVisibility
=
"Auto"
>
<
telerikNavigation:RadTreeView
ScrollViewer.HorizontalScrollBarVisibility
=
"Hidden"
ScrollViewer.VerticalScrollBarVisibility
=
"Hidden"
>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 1"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 2"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 3"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 4"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 5"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 6"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 7"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 8"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 9"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 10"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 11"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 12"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 13"
/>
<
telerikNavigation:RadTreeViewItem
Header
=
"Item 14"
/>
</
telerikNavigation:RadTreeView
>
</
ScrollViewer
>
Let me know if this approach will work for you.
Sincerely yours,
Tihomir Petkov
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
![](/forums/images/avatarimages/default.gif)
Sternico
Top achievements
Rank 1
answered on 18 Mar 2010, 03:35 PM
Thank you for your workaround. It looks good on the first look, but the problem is, that the scroll wheel didn't work as expected (it only wokrs, if the cursor is over the scrollbar). Have you an other solution?
0
Hello Sternico,
I updated the sample project to include a customized ControlTemplate for the TreeView. This way the ScrollBars will look like the default ones and the mouse wheel issue should be resolved. Please take a look at the project and let me know if it will work for you.
Regards,
Tihomir Petkov
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.
I updated the sample project to include a customized ControlTemplate for the TreeView. This way the ScrollBars will look like the default ones and the mouse wheel issue should be resolved. Please take a look at the project and let me know if it will work for you.
Regards,
Tihomir Petkov
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.