RadTreeListView
A Grid-Like control that can display hierarchies like a TreeView.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class RadTreeListView : GridViewDataControl, INotifyPropertyChanged, IScrollingServiceCore, IScrollingInfo
Inheritance: objectDataControlBaseItemsControlGridViewDataControlRadTreeListView
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTreeListView class.
public RadTreeListView()
Fields
AutoExpandItemsAfterFilterProperty
DependencyProperty
Identifies the AutoLoadHierarchy property.
public static readonly DependencyProperty AutoExpandItemsAfterFilterProperty
AutoExpandItemsProperty
DependencyProperty
Identifies the AutoExpandItems property.
public static readonly DependencyProperty AutoExpandItemsProperty
AutoLoadHierarchyProperty
DependencyProperty
Identifies the AutoLoadHierarchy property.
public static readonly DependencyProperty AutoLoadHierarchyProperty
DragCueItemTemplateProperty
DependencyProperty
Identifies the DragCueItemTemplate dependency property.
public static readonly DependencyProperty DragCueItemTemplateProperty
DragEndedEvent
RoutedEvent
Identifies the DragEnded routed event.
public static readonly RoutedEvent DragEndedEvent
DragStartedEvent
RoutedEvent
Identifies the DragStarted routed event.
public static readonly RoutedEvent DragStartedEvent
DropPositionProperty
DependencyProperty
Identifies the DropPosition dependency property.
public static readonly DependencyProperty DropPositionProperty
HierarchyColumnIndexProperty
DependencyProperty
Identifies the HierarchyColumnIndex property.
public static readonly DependencyProperty HierarchyColumnIndexProperty
HierarchyIndentProperty
DependencyProperty
Identifies the HierarchyIndent dependency property.
public static readonly DependencyProperty HierarchyIndentProperty
IsDragDropEnabledProperty
DependencyProperty
Identifies the IsDragDropEnabled dependency property.
public static readonly DependencyProperty IsDragDropEnabledProperty
IsDragPreviewEnabledProperty
DependencyProperty
Identifies the IsDragPreviewEnabled dependency property.
public static readonly DependencyProperty IsDragPreviewEnabledProperty
IsDragTooltipEnabledProperty
DependencyProperty
Identifies the IsDragTooltipEnabled dependency property.
public static readonly DependencyProperty IsDragTooltipEnabledProperty
IsDropPreviewLineEnabledProperty
DependencyProperty
Identifies the IsDropPreviewLineEnabled dependency property.
public static readonly DependencyProperty IsDropPreviewLineEnabledProperty
PreviewDragEndedEvent
RoutedEvent
Identifies the PreviewDragEnded routed event.
public static readonly RoutedEvent PreviewDragEndedEvent
PreviewDragStartedEvent
RoutedEvent
Identifies the PreviewDragStarted routed event.
public static readonly RoutedEvent PreviewDragStartedEvent
TreeLinesBrushProperty
DependencyProperty
Identifies the TreeLinesBrush property.
public static readonly DependencyProperty TreeLinesBrushProperty
TreeLinesStrokeThicknessProperty
DependencyProperty
Identifies the TreeLinesStroke property.
public static readonly DependencyProperty TreeLinesStrokeThicknessProperty
TreeLinesVisibilityProperty
DependencyProperty
Identifies the TreeLinesVisibility property.
public static readonly DependencyProperty TreeLinesVisibilityProperty
Properties
Gets or sets value indicating if the hierarchy items should be expanded initially or not.
public bool AutoExpandItems { get; set; }
Gets or sets value which controls whether the hierarchy items should be expanded after filtering.
public bool AutoExpandItemsAfterFilter { get; set; }
Gets or sets value indicating if the hierarchy should be loaded initially or not.
public bool AutoLoadHierarchy { get; set; }
DragCueItemTemplate
DataTemplate
Gets or sets the template for the drag cue.
public DataTemplate DragCueItemTemplate { get; set; }
Gets or sets the display index of the column that will contain the hierarchy. This property takes effect only if assigned before ItemsSource.
public int HierarchyColumnIndex { get; set; }
Gets or sets the indent of the hierarchy expand button.
public double HierarchyIndent { get; set; }
Gets or sets a value indicating whether drag and drop is enabled.
public bool IsDragDropEnabled { get; set; }
Gets or sets a value indicating whether drag feedback is shown while dragging.
public bool IsDragPreviewEnabled { get; set; }
Gets or sets a value indicating whether drag tooltip is shown while dragging.
public bool IsDragTooltipEnabled { get; set; }
Gets or sets a value indicating whether drag outline is shown while dragging.
public bool IsDropPreviewLineEnabled { get; set; }
TreeLinesBrush
Brush
Gets or sets value indicating the TreeLinesBrush.
public Brush TreeLinesBrush { get; set; }
Gets or sets value indicating the TreeLinesStroke thickness.
public double TreeLinesStrokeThickness { get; set; }
Gets or sets value indicating the TreeLinesVisibility.
public TreeLinesVisibility TreeLinesVisibility { get; set; }
Methods
When overridden in a derived class, undoes the effects of the PrepareContainerForItemOverride method.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
The container element.
itemobjectThe item.
Overrides:
GetContainerForItemOverride(object)
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override DependencyObject GetContainerForItemOverride(object item)
DependencyObject
The element that is used to display the given item.
Overrides:
Hides the drag cue that appears when a drop between two items is possible.
public void HideBetweenItemsDragCue()
public override void OnApplyTemplate()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event.
protected virtual void OnDragEnded(RadTreeListViewDragEndedEventArgs e)
The RadTreeListViewDragEndedEventArgs instance containing the event data.
Raises the event.
protected virtual void OnDragStarted(RadTreeListViewDragEventArgs e)
The RadTreeListViewDragEventArgs instance containing the event data.
Called when this.Items collection changes.
protected override void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
The sender.
eNotifyCollectionChangedEventArgsThe NotifyCollectionChangedEventArgs instance containing the event data.
Overrides:
Raises the event.
protected virtual bool OnPreviewDragEnded(RadTreeListViewDragEndedEventArgs e)
The RadTreeListViewDragEndedEventArgs instance containing the event data.
Returns:Raises the event.
protected virtual bool OnPreviewDragStarted(RadTreeListViewDragEventArgs e)
The RadTreeListViewDragEventArgs instance containing the event data.
Returns:Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Overrides:
Resets the theme of the RadTreeListView.
public void ResetTheme()
Scrolls a cell into view.
public void ScrollIntoView(object dataItem, GridViewColumn column, bool expandItem)
The item to scroll into view.
columnGridViewColumnThe column to scroll into view.
expandItemboolIndicates whether to expand the item or not.
If the column parameter is null then only vertical scroll is performed. If the dataItem parameter is null then only horizontal scroll is performed.
Scrolls the row containing the data item into view in an asynchronous manner.
public void ScrollIntoViewAsync(object dataItem, Action<FrameworkElement> scrollFinishedCallback, Action scrollFailedCallback, bool expandItem)
The item to scroll into view.
scrollFinishedCallbackAction<FrameworkElement>The method to execute when scrolling has finished.
scrollFailedCallbackActionThe method to execute when scrolling has failed.
expandItemboolIndicates whether to expand the item or not.
Since this method is asynchronous, calling it will return immediately. If you need to perform a certain action once the scrolling is done use the scrollFinishedCallback parameter to pass in a method to execute. The FrameworkElement parameter of this method will be the row that was just scrolled.
Scrolls the row containing the data item into view in an asynchronous manner.
public void ScrollIntoViewAsync(object dataItem, Action<FrameworkElement> scrollFinishedCallback, bool expandItem)
The item to scroll into view.
scrollFinishedCallbackAction<FrameworkElement>The method to execute when scrolling has finished.
expandItemboolIndicates whether to expand the item or not.
Since this method is asynchronous, calling it will return immediately. If you need to perform a certain action once the scrolling is done use the scrollFinishedCallback parameter to pass in a method to execute. The FrameworkElement parameter of this method will be the row that was just scrolled.
Scrolls the row containing the data item and GridViewColumn into view in an asynchronous manner.
public void ScrollIntoViewAsync(object dataItem, GridViewColumn column, Action<FrameworkElement> scrollFinishedCallback, Action scrollFailedCallback, bool expandItem)
The data item to scroll into view.
columnGridViewColumnThe column to scroll into view.
scrollFinishedCallbackAction<FrameworkElement>The method to execute when scrolling has finished.
scrollFailedCallbackActionThe method to execute when scrolling has failed.
expandItemboolIndicates whether to expand the item or not.
Scrolls the row containing the data item and GridViewColumn into view in an asynchronous manner.
public void ScrollIntoViewAsync(object dataItem, GridViewColumn column, Action<FrameworkElement> scrollFinishedCallback, bool expandItem)
The item to scroll into view.
columnGridViewColumnThe column to scroll into view.
scrollFinishedCallbackAction<FrameworkElement>The method to execute when scrolling has finished.
expandItemboolIndicates whether to expand the item or not.
Since this method is asynchronous, calling it will return immediately. If you need to perform a certain action once the scrolling is done use the scrollFinishedCallback parameter to pass in a method to execute. The FrameworkElement parameter of this method will be the row that was just scrolled.
Shows the DragCue that appears when a drop between two items is possible.
public void ShowBetweenItemsDragCue(GridViewRow dropDestination)
The relative drop position. In this method only DropPosition.Before and DropPosition.After make sense.
Events
Occurs before the drag has been ended.
public event RadTreeListViewDragEndedEventHandler PreviewDragEnded