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

Displaying Icons OK, but how do you get rid of the black arrows?

1 Answer 19 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Anthony Ortiz
Top achievements
Rank 1
Anthony Ortiz asked on 31 Jul 2012, 04:55 PM
I've set the default and expanded images and the icons are showing correctly, but the black arrows still appear next to them. I thought the icons would override these arrows but apparantly they don't. How can I get rid of the black arrows?

Regards,

Anthony

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 01 Aug 2012, 12:31 PM
Hello Anthony,

The black arrows actually represent the expander of each RadTreeViewItem. You can remove it by changing its default ControlTemplate to represent an empty Grid. You can apply this custom template through the RadTreeView.ExpanderStyle property like this:

<telerik:RadTreeView ...>
    <telerik:RadTreeView.ExpanderStyle>
        <Style TargetType="ToggleButton">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </telerik:RadTreeView.ExpanderStyle>
</telerik:RadTreeView>
 
Give this a try and let me know if it helps.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeView
Asked by
Anthony Ortiz
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or