How to disable adorner border around nodes with some children checked

2 posts, 0 answers
  1. James
    James avatar
    1 posts
    Member since:
    Feb 2012

    Posted 14 Mar 2012 Link to this post

    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
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 16 Mar 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top