New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public abstract class DataGridCellRenderer

Inheritance: objectDataGridCellRenderer

Constructors

C#
protected DataGridCellRenderer()

Methods

Clear the custom container.

C#
protected virtual void ClearContainer(object container)
Parameters:containerobject

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.

C#
protected virtual object CreateContainer(object containerType)
Parameters:containerTypeobjectReturns:

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.

C#
protected virtual object GetContainerType(DataGridColumn column, object item)
Parameters:columnDataGridColumnitemobjectReturns:

object

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

C#
protected virtual Size MeasureContainer(DataGridCellRendererMeasureContext measureContext)
Parameters:measureContextDataGridCellRendererMeasureContextReturns:

Size

Invoked when the renderer gets attached to a column.

C#
protected virtual void OnAttached(DataGridColumn column)
Parameters:columnDataGridColumn

Invoked when the renderer gets detached from a column.

C#
protected virtual void OnDetached(DataGridColumn column)
Parameters:columnDataGridColumn

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

C#
protected virtual void OnRenderCompleted()

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

C#
protected virtual void OnRenderStarted()

Prepare the custom container.

C#
protected virtual void PrepareContainer(object container, object item)
Parameters:containerobjectitemobject

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

C#
protected virtual void RenderContainer(DataGridCellRendererRenderContext renderContext)
Parameters:renderContextDataGridCellRendererRenderContext

Makes a request for a render pass to be scheduled.

C#
public void RequestRender()