Class TreeGridModel
Inheritance
System.Object
TreeGridModel
Implements
System.IDisposable
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridModel : Object, IDisposable
Constructors
TreeGridModel(SfTreeGrid)
Represents a wrapper class for SfTreeGrid control to handle the collection and view related operations.
Declaration
public TreeGridModel(SfTreeGrid treeGrid)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid |
Remarks
TreeGridModel class listens to the collection changes in a SfTreeGrid control and responds to them. It updates the View in response to the collection changes.
Methods
Dispose()
Releases all the resources used by the TreeGridModel class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the TreeGridModel class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a finalizer. |
FilterColumn(TreeGridColumn, List<FilterPredicate>)
Applies the created filter predicates to the corresponding column.
Declaration
public void FilterColumn(TreeGridColumn column, List<FilterPredicate> filterPredicates)
Parameters
Type | Name | Description |
---|---|---|
TreeGridColumn | column | The Column to be filtered. |
System.Collections.Generic.List<FilterPredicate> | filterPredicates | The Filter predicates collection to perform filtering. |
RefreshDataRows()
Refreshes the DataRows in view when the grid operations is performed.
Declaration
public void RefreshDataRows()
Implements
System.IDisposable