Class TreeGridHeaderCellRenderer
Represents a class that maintains the rendering of TreeGridHeaderCell in SfTreeGrid.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid.Renderers
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class TreeGridHeaderCellRenderer : TreeGridVirtualizingCellRenderer<TreeGridHeaderCell, TreeGridHeaderCell>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridHeaderCellRenderer()
Initializes a new instance of TreeGridHeaderCellRenderer class.
Declaration
public TreeGridHeaderCellRenderer()
Methods
CanUpdateBinding(TreeGridColumn)
Determines whether the binding for the column can be updated.Implement this method to update binding on particular renderer whether the data context is set.
Declaration
public override bool CanUpdateBinding(TreeGridColumn column)
Parameters
Type | Name | Description |
---|---|---|
TreeGridColumn | column | The corresponding column. |
Returns
Type | Description |
---|---|
System.Boolean | True if the binding is updated for the column; otherwise false. |
Overrides
InitializeCellStyle(TreeDataColumnBase, Object)
Initializes the custom style for cell when the corresponding API's and Selectors are used.
Declaration
protected override void InitializeCellStyle(TreeDataColumnBase treeDataColumn, object record)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | treeDataColumn | The corresponding DataColumn Which holds TreeGridColumn, RowColumnIndex and GridCell to initialize cell style. |
System.Object | record | The corresponding record to initialize cell style. |
Overrides
OnInitializeDisplayElement(TreeDataColumnBase, TreeGridHeaderCell, Object)
Invoked when the display element is initialized on the cell.
Declaration
public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, TreeGridHeaderCell uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The dataColumn where the cell is located. |
TreeGridHeaderCell | uiElement | The uiElement that is initialized on the display element of cell. |
System.Object | dataContext | The dataContext of the cell. |
Overrides
OnInitializeEditElement(TreeDataColumnBase, TreeGridHeaderCell, Object)
Invoked when the edit element is initialized on the cell.
Declaration
public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, TreeGridHeaderCell uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The dataColumn where the cell is located. |
TreeGridHeaderCell | uiElement | The element that is initialized on the edit element of cell. |
System.Object | dataContext | The dataContext of the cell. |
Overrides
OnUpdateDisplayBinding(TreeDataColumnBase, TreeGridHeaderCell, Object)
Updates the binding for display element of cell in column.
Declaration
public override void OnUpdateDisplayBinding(TreeDataColumnBase dataColumn, TreeGridHeaderCell uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The corresponding dataColumn where the cell is located. |
TreeGridHeaderCell | uiElement | The corresponding uiElement to update display element. |
System.Object | dataContext | The data context of the cell. |
Overrides
OnUpdateEditBinding(TreeDataColumnBase, TreeGridHeaderCell, Object)
Updates the binding for edit element of cell in column.
Declaration
public override void OnUpdateEditBinding(TreeDataColumnBase dataColumn, TreeGridHeaderCell element, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The corresponding dataColumn where the cell is located. |
TreeGridHeaderCell | element | The corresponding element to update binding of edit element. |
System.Object | dataContext | The data context of the cell. |