Class GridImageCellRenderer
GridImageCellRenderer is a class for cell renderer that displays SfImageView in a GridCell. The class provides strong typed override methods for initializing Content of the cell and arranging the cell visuals.
Updates to appearance and Content of child elements, creation and unloading of views will not trigger layout or render calls in parent canvas.
Inheritance
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class GridImageCellRenderer : GridVirtualizingCellRendererBase<SfImageView, SfImageView>, IGridCellRenderer, IDisposable
Constructors
GridImageCellRenderer()
Initializes a new instance of the GridImageCellRenderer class.
Declaration
public GridImageCellRenderer()
Methods
OnCreateDisplayUIView()
Creates a new SfImageView.
Declaration
protected override SfImageView OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
SfImageView | A new SfImageView. |
Overrides
OnInitializeDisplayView(DataColumnBase, SfImageView)
Initializes the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given SfImageView and the required values.
Declaration
public override void OnInitializeDisplayView(DataColumnBase dataColumn, SfImageView view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
SfImageView | view | A SfImageView to be hosted inside the column element. |
Overrides
OnUnloadViews(DataColumnBase)
Called from UnloadViews(DataColumnBase) after a cell is scrolled out of view. GridVirtualizingCellRendererBase<T1, T2> overrides this method and either removes the cell renderer visuals from the parent canvas or hide them and reuse it later in same canvas depending on whether AllowRecycle was set.
Declaration
protected override void OnUnloadViews(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateDisplayValue(DataColumnBase, SfImageView)
Updates the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given SfImageView and required values.
Declaration
public override void OnUpdateDisplayValue(DataColumnBase dataColumn, SfImageView view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
SfImageView | view | A SfImageView to be updated inside the column element. |