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

How to disable adorner border around nodes with some children checked

1 Answer 125 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 14 Mar 2012, 07:59 AM
I have a treeview with tri-state mode enabled bound to a hierachical data source. When I check some children of a node (but not all), a red adorner border surrounds the whole RadTreeViewItem. A screenshot is attached.

How do I disable this border?

RadTreeView XAML:

<telerik:RadTreeView
            telerik:AnimationManager.IsAnimationEnabled="False"
            Grid.Row="0"
            ItemsSource="{Binding ElementName=ElementRoot, Path=RoleList}"
            SelectedItem="{Binding ElementName=ElementRoot, Path=SelectedRole, Mode=TwoWay}"
            ItemContainerStyle="{StaticResource ApplicationTreeViewStyle}"
            IsOptionElementsEnabled="True"
            ItemsOptionListType="CheckList"
            IsTriStateMode="True"
            DropExpandDelay="00:00:00"
            ScrollViewer.HorizontalScrollBarVisibility="Auto"
            ScrollViewer.VerticalScrollBarVisibility="Auto" />

HierarchicalDataTemplate:

<HierarchicalDataTemplate
    DataType="{x:Type Models:Role}"
    ItemsSource="{Binding Children}">
    <TextBlock
        Text="{Binding DisplayName}" />
</HierarchicalDataTemplate>

RadTreeViewItemStyle:

<Style x:Key="ApplicationTreeViewStyle" TargetType="{x:Type telerik:RadTreeViewItem}">
    <Setter
        Property="IsSelected"
        Value="{Binding Path=Selected, Mode=TwoWay}"/>
    <Setter
        Property="CheckState"
        Value="{Binding Path=Checked, Mode=TwoWay, Converter={StaticResource Bool2ToggleConverter}}"/>
    <Setter
        Property="IsExpanded"
        Value="{Binding Path=Expanded, Mode=TwoWay}" />
</Style>


Thank you,

James

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 16 Mar 2012, 04:08 PM
Hello James,

 This looks very strange to us. Is it possible for you to isolate it in a sample project that we could investigate locally? You can also check our test project where this is not reproducible, but you can correct us if we are missing something. Please also mention your exact assemblies version that you use. Thank you in advance.

Regards,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeView
Asked by
James
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or