Class TreeGridSelfRelationalView
Represents a class that maintains the implementation of SelfRelationalView in SfTreeGrid.
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class TreeGridSelfRelationalView : TreeGridQueryableView, ITreeGridViewNotifier, IEditableCollectionView, IDisposable
Constructors
TreeGridSelfRelationalView(IEnumerable, SfTreeGrid)
Initializes a new instance of TreeGridSelfRelationalView class with specified source and SfTreeGrid.
Declaration
public TreeGridSelfRelationalView(IEnumerable source, SfTreeGrid treeGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | The source. |
SfTreeGrid | treeGrid | The SfTreeGrid. |
Properties
SelfRelationUpdateMode
Gets or sets a value that indicates how nodes should be arranged while changing ChildPropertyName and ParentPropertyName in Self Relational mode.
Declaration
public SelfRelationUpdateModes SelfRelationUpdateMode { get; }
Property Value
Type |
---|
SelfRelationUpdateModes |
Methods
OnCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Method which handles the collection changes.
Declaration
protected override void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | sender. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | NotifyCollectionChangedEventArgs. |
Overrides
UpdateNodesOnPropertyChange(Object, PropertyChangedEventArgs, TreeNode)
Check TreeGridView on property changes and do the actions.
Declaration
protected override void UpdateNodesOnPropertyChange(object sender, PropertyChangedEventArgs e, TreeNode treeNode = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | updated record. |
System.ComponentModel.PropertyChangedEventArgs | e | PropertyChangedEventArgs. |
TreeNode | treeNode | Tree node. |
Overrides
Implements
System.IDisposable