Class TreeGridHyperlinkCellRenderer
Represents a cell renderer for hyperlink columns in the SfTreeGrid control.
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridHyperlinkCellRenderer : TreeGridCellRenderer<ContentView, View>, ITreeGridCellRenderer, IDisposable
Remarks
This renderer displays cell values as clickable hyperlinks with styled text color. When a hyperlink is tapped, the CurrentCellRequestNavigating event is raised, allowing developers to handle navigation or custom actions.
Pattern: Uses ContentView wrapper (matching DataGrid approach)
- Generic type: TreeGridCellRenderer<ContentView, View>
- Creates SfTreeGridHyperlinkLabel and places it inside ContentView.Content
- Binding applied to inner label, not the wrapper
Constructors
TreeGridHyperlinkCellRenderer()
Initializes a new instance of the TreeGridHyperlinkCellRenderer class.
Declaration
public TreeGridHyperlinkCellRenderer()
Methods
OnCreateDisplayUIView()
Creates the view for the display UI (ContentView wrapper).
Declaration
protected override ContentView OnCreateDisplayUIView()
Returns
| Type |
|---|
| ContentView |
Overrides
OnInitializeDisplayView(TreeGridDataColumnBase, ContentView?)
Initializes settings of the display view for hyperlink cell rendering.
Declaration
protected override void OnInitializeDisplayView(TreeGridDataColumnBase dataColumn, ContentView? view)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridDataColumnBase | dataColumn | The data column to initialize. |
| ContentView | view | The ContentView wrapper to initialize. |
Overrides
OnSetCellStyle(TreeGridDataColumnBase)
Sets the styles for the TreeGridCell.
Declaration
protected override void OnSetCellStyle(TreeGridDataColumnBase dataColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridDataColumnBase | dataColumn | The dataColumn to apply the style. |
Overrides
OnUpdateCellValue(TreeGridDataColumnBase)
Called when the cell value of the specified TreeGridDataColumnBase is updated.
Declaration
protected override void OnUpdateCellValue(TreeGridDataColumnBase dataColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridDataColumnBase | dataColumn | The data column to update. |