Change the selection on MouseLeftButtonUp instead of MouseLeftButtonDown.
TreeView is in dropdowncontent of a DropDownButton. BringPathIntoView is called on loaded of the button (or the tree). It tries to bring several nested levels deep for example item 90.3.2.1 (4 levels deep).
On opening the button , the scrollviewer is not scrolled to the desired item.
Posssible workarounds:
- invoke the BringPathIntoView method in a Dispatcher.BeginInvoke call
- disable the treeview animations before the call and enable them after the call ( telerik:AnimationManager.IsAnimationEnabled = False)
Select an item with mouse, scroll thousands of items down and then shift select item to perform range selection. This will block the UI thread for seconds.
Select nested item in virtualized treeview with single selection mode.
Collapse its parent. Select item in the level of the parent. Expand the parent and notice two items are visually selected.
Expexted : only the last selected item with mouse should be visually selected.
Workaround:
private void TreeView_ItemPrepared(object sender, RadTreeViewItemPreparedEventArgs e)Add a possibility to disable selection of RadTreeViewItem.
Setting the HeaderStringFormat of RadTreeViewItem does not format the Header. As a workaround, HeaderTemplate of RadTreeViewItem could be set which has TextBlock with StringFormat property set on its Text Binding. <DataTemplate x:Key="template"> <TextBlock Text="{Binding ., StringFormat='Received ({0:N0})'}" /> </DataTemplate> Available in LIB version: 2016.3.1121
SelectedItems collection does not work correctly when the RadTreeView is virtualized and ContainerBindings (SL) / Style Bindings (WPF) are used for binding the IsSelected property. The issue is not reproducible with R3 2016 version of RadTreeView with both Multiple and Extended Selection mode. Please open a new support thread with detals from your scenario if you encounter similar issue.
Show tooltip when node (the Header of the RadTreeViewiItem) is clipped. You can check a possible implementation in this SDK sample: https://github.com/telerik/xaml-sdk/tree/master/TreeView/ShowTooltipWhenNodeIsClipped
If item is expanded from the UI and viewport is scrolled to the top calling BringIndexIntoView causes the viewport to lock while scrolling. Available in LIB version: 2016.2.516
TreeView is in TabItem of TabControl with IsContentPreserved = False. On ContextMenu open and when working with Contextmenu, the underlying RadTreeViewItem is in MouseOverState. Changing tabs then back to the tab with the TreeView. When working with contextmenu, the underlying treeviewitem is not is mouseoverstate. Could be reproduced in CustomContextMenu QSF sample. Not reproducible in AddRemoveDisable sample. The workaround is to set IsContentPreserved to true on the RadTabControl.
If RadTreeView.IsEnabled false (or the tree is inside busy BusyIndicator), then ExpandItemByPath(or GetItemByPath) does not work. Available in LIB version: 2016.2.525