Won't fix
Last Updated: 08 Feb 2019 15:23 by ADMIN
ADMIN
Dinko
Created on: 04 Sep 2017 14:10
Category: TreeView
Type: Bug Report
1
TreeView: In Material theme, tree item is visually selected while try to drag an item when selection and drag functionalities are disabled
This behavior is reproducible when we have applied Material theme and we have disabled the selection and drag of a RadTreeViewItem. 
A possible workaround is to set the MaterialAssist.CheckedBrush attached property to Null of the RadTreeViewItem which you don't want to select and drag.

 xmlns:material="clr-namespace:Telerik.Windows.Controls.MaterialControls;assembly=Telerik.Windows.Controls"

 <telerik:RadTreeViewItem Header="RootItem" material:MaterialAssist.CheckedBrush="{x:Null}" />
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Vicky
Posted on: 08 Feb 2019 15:23
Won't fix: RadTreeView's DragDrop built-in functionality selects the RadTreeViewItem. Therefore, in Material theme, the RadTreeViewItem trigger for the selected state is activated and in its EnterAction, the item's background changes to its selected background color.

RadTreeViewItem provides the option to control whether the item can be selected through the UI or not. This is done through its IsSelectable property.

Therefore, in order to prevent selection and drag of RadTreeView's item in this particular case, the IsSelectable property needs to be set to false.

<telerik:RadTreeViewItem Header="RootItem 1" IsSelectable="False">
    <telerik:RadTreeViewItem Header="ChildItem 1" />
    <telerik:RadTreeViewItem Header="ChildItem 2"/>
    <telerik:RadTreeViewItem Header="ChildItem 3"/>
</telerik:RadTreeViewItem>

Regards,
Vicky