Class
DataGridCellRenderer

Allows rendering of custom content for the cells of the RadDataGrid when using SkiaSharp for rendering. To enable SkiaSharp rendering in iOS and MacCatalyst, the RenderMode property needs to be set to SkiaSharp.

Definition

Namespace:Telerik.Maui.Controls.DataGrid

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public abstract class DataGridCellRenderer

Inheritance: objectDataGridCellRenderer

Constructors

DataGridCellRenderer()

Declaration

cs-api-definition
protected DataGridCellRenderer()

Methods

ClearContainer(object)

Clear the custom container.

Declaration

cs-api-definition
protected virtual void ClearContainer(object container)

Parameters

container

object

CreateContainer(object)

Create a new instance of a custom container for this type of items. The custom container allows carrying any custom information for the item it will be related to. Return null if no container needs to be used.

Declaration

cs-api-definition
protected virtual object CreateContainer(object containerType)

Parameters

containerType

object

Returns

object

GetContainerType(DataGridColumn, object)

Return the container-type for this item, i.e. a specific identifier for this type of items. Items that have the same container-type can reuse each others' container instances. Return null if this item should not take part in the rendering at all.

Declaration

cs-api-definition
protected virtual object GetContainerType(DataGridColumn column, object item)

Parameters

column

DataGridColumn

item

object

Returns

object

MeasureContainer(DataGridCellRendererMeasureContext)

Return the desired size for the current item in device independent pixels.

Declaration

cs-api-definition
protected virtual Size MeasureContainer(DataGridCellRendererMeasureContext measureContext)

Parameters

measureContext

DataGridCellRendererMeasureContext

Returns

Size

OnAttached(DataGridColumn)

Invoked when the renderer gets attached to a column.

Declaration

cs-api-definition
protected virtual void OnAttached(DataGridColumn column)

Parameters

column

DataGridColumn

OnDetached(DataGridColumn)

Invoked when the renderer gets detached from a column.

Declaration

cs-api-definition
protected virtual void OnDetached(DataGridColumn column)

Parameters

column

DataGridColumn

OnRenderCompleted()

Marks the end of the rendering of the cells related to this renderer.

Declaration

cs-api-definition
protected virtual void OnRenderCompleted()

OnRenderStarted()

Marks the beginning of the rendering of the cells related to this renderer.

Declaration

cs-api-definition
protected virtual void OnRenderStarted()

PrepareContainer(object, object)

Prepare the custom container.

Declaration

cs-api-definition
protected virtual void PrepareContainer(object container, object item)

Parameters

container

object

item

object

RenderContainer(DataGridCellRendererRenderContext)

Render any custom content for the current item. Invoke the base implementation of this method if you want to render the default render content.

Declaration

cs-api-definition
protected virtual void RenderContainer(DataGridCellRendererRenderContext renderContext)

Parameters

renderContext

DataGridCellRendererRenderContext

RequestRender()

Makes a request for a render pass to be scheduled.

Declaration

cs-api-definition
public void RequestRender()