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

ScrollBar with windows default style

3 Answers 142 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sternico
Top achievements
Rank 1
Sternico asked on 15 Mar 2010, 04:08 PM
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?

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 18 Mar 2010, 10:41 AM
Hi Sternico,

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
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
Tihomir Petkov
Telerik team
answered on 23 Mar 2010, 03:41 PM
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.
Tags
TreeView
Asked by
Sternico
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Sternico
Top achievements
Rank 1
Share this question
or