Declined
Last Updated: 03 Mar 2016 08:55 by Alan
A common request is to have a way to hide the root node of a RadTreeView so that the second-level nodes are displayed without a root.  If the RadTreeView is bound, it appears that this can be done through the hierarchical binding if one know what one is doing.  However, there does not seem to be a simple way to do it if the nodes to be added to the RadTreeView are added programmatically.  It would be helpful if there were a binary property on the RadTeeView to set whether the root node is displayed.


Reason for decline:
Both in databound tree or not , you can add only the items you need to display in the root source / root items collection of the tree. Generally, there is no value of hiding a root node that has children - why is inside the collection at all ?
Completed
Last Updated: 02 Sep 2015 08:28 by ADMIN
RadTreeViewItem is focused but it is not selected.

KeyDown should select the item below the focused one but it does not.


Will be available in Q3 2015 Release.
Unplanned
Last Updated: 16 Dec 2022 08:58 by ADMIN
RadTreeView with virtualization turned on, defines HierarchicalDataTemplates for its items. 

In the template, the root panel is 32 pixels (or higher than the default TreeViewItemHeight - 24 px in OfficeBlackTheme). Scrolling the treeview, then maximizing the wpf window results in misplaced / incorrect height of treeviewitems.

Possible workaround:
Set the MinHeight property of RadTreeViewItem so that all its header content fits. Then set the item's VerticalContentAlignment to Stretch
        <Style TargetType="telerik:RadTreeViewItem">
                         <Setter Property="MinHeight" Value="48" />
                        <Setter Property="VerticalContentAlignment" Value="Stretch" />
                   </Style>

Also following settings might help:
- setting fixed width/height of the RadTreeView
- setting ChildDefaultLength to 48 of every TreeviewPanel:
			<telerik:RadTreeView.ItemsPanel>
				<ItemsPanelTemplate>
					<telerik:TreeViewPanel ChildDefaultLength="48" />
				</ItemsPanelTemplate>
			</telerik:RadTreeView.ItemsPanel>
        <Style x:Key="ItemContainerStyle" TargetType="{x:Type telerik:RadTreeViewItem}">
			<Setter Property="ItemsPanel">
				<Setter.Value>
					<ItemsPanelTemplate>
						<telerik:TreeViewPanel ChildDefaultLength="48" />
					</ItemsPanelTemplate>
				</Setter.Value>
			</Setter>
Completed
Last Updated: 14 Feb 2023 08:41 by ADMIN
Release R1 2023
The example modifies the DropPosition of the dragged item to Inside on drag over. This could lead to an exception in the default drag-drop logic if the dragged item and the drop target are of the same type. This exception causes the dragged item to disappear when it is dropped.
Unplanned
Last Updated: 26 Jan 2024 10:57 by Kostiantyn
RadTreeViewItemEditedEventArgs returns the same object in the OldValue and NewValue properties when using the Edited event.
Declined
Last Updated: 28 May 2024 08:17 by ADMIN

We use a RadTreeView with many different item types that set a DefaultImageSrc based on a combination of item type and state
(from each item's view model).

For the currently selected TreeView item we would like to modify the item's image with a coloured border.
So it would be a very useful feature, if the TreeView item's SelectedImage could be derived from the DefaultImageSrc
via XAML Shapes (Rectangle, Line, etc.).
(Shapes can e.g. already be used to draw TreeView's Expander-Button for expanded/collapsed state, which is very useful).

Currently the only approach is to copy any item-type's image in the file system and modify it for selected state.
(Thus doubling the number of item image files.)
Given the number of images for different item types and states that we already have, this is not very practical.

Examples for DefaultImageSrc (left) and SelectedImageSrc (right):

  •  -> 
  •  -> 

Is it possible to extend RadTreeView, so that the SelectedImageSrc can be based on the given DefaultImageSrc, but with a modification provided via XAML?


4 5 6 7 8 9