Class GridVirtualizingCellRenderer<T1, T2>
GridVirtualizingCellRenderer is an abstract base class for cell renderer classes that need live views displayed in a cell. You can derive from this class and provide the type of the UIElement you want to show inside cells as type parameter. The class provides strong typed virtual methods for initializing Content of the cell and arranging the cell visuals. See GridVirtualizingCellRendererBase<T1, T2> for more details.
The idea behind this class is to provide a place where we can add general code that should be shared for all cell renderer classes in the tree derived from GridVirtualizingCellRendererBase. While this class does at the moment not add meaningful functionality to GridVirtualizingCellRendererBase we created this extra layer of inheritance to make it easy to share code for the GridVirtualizingCellRendererBase base class between grid and common assemblies and keep grid control specific code out of the base class. It is currently not possible with C# to the base class as template type parameter.
Inheritance
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public abstract class GridVirtualizingCellRenderer<T1, T2> : GridVirtualizingCellRendererBase<T1, T2>, IGridCellRenderer, IDisposable where T1 : View where T2 : View
Type Parameters
Name | Description |
---|---|
T1 | The type of the UIElement that should be placed inside cells in display mode. |
T2 | The type of the UIElement that should be placed inside cells in edit mode. |
Constructors
GridVirtualizingCellRenderer()
Initializes a new instance of the GridVirtualizingCellRenderer<T1, T2> class.
Declaration
public GridVirtualizingCellRenderer()
Methods
OnInitializeDisplayView(DataColumnBase, T1)
Initializes the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given view and required values.
Declaration
public override void OnInitializeDisplayView(DataColumnBase dataColumn, T1 view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
T1 | view | The child view to be hosted inside the column element. |
Overrides
OnInitializeEditView(DataColumnBase, T2)
Initializes the edit column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given view and required values.
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, T2 view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
T2 | view | The child view to be hosted inside the column element. |
Overrides
OnUpdateCellStyle(DataColumnBase)
Called from UpdateCellStyle(DataColumnBase) to update the cell style of the GridCaptionSummaryCell.
Declaration
protected override void OnUpdateCellStyle(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateDisplayValue(DataColumnBase, T1)
Updates the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given view and required values.
Declaration
public override void OnUpdateDisplayValue(DataColumnBase dataColumn, T1 view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
T1 | view | The child view to be updated inside the column element. |
Overrides
UpdateEditViewCellStyle(DataColumnBase, T2)
Updates the cell style of the edit element in a grid cell.
Declaration
protected virtual void UpdateEditViewCellStyle(DataColumnBase dataColumn, T2 editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
T2 | editView | The edit view hosted inside a column element. |