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.
Inheritance
Namespace: Telerik.Maui.Controls.DataGrid
Assembly: Telerik.Maui.Controls.dll
Syntax
public abstract class DataGridCellRenderer : Object
Constructors
DataGridCellRenderer()
Declaration
protected DataGridCellRenderer()
Methods
ClearContainer(Object)
Clear the custom container.
Declaration
protected virtual void ClearContainer(object container)
Parameters
System.Object
container
|
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
protected virtual object CreateContainer(object containerType)
Parameters
System.Object
containerType
|
Returns
System.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
protected virtual object GetContainerType(DataGridColumn column, object item)
Parameters
DataGridColumn
column
|
System.Object
item
|
Returns
System.Object
|
MeasureContainer(DataGridCellRendererMeasureContext)
Return the desired size for the current item in device independent pixels.
Declaration
protected virtual Size MeasureContainer(DataGridCellRendererMeasureContext measureContext)
Parameters
DataGridCellRendererMeasureContext
measureContext
|
Returns
Microsoft.Maui.Graphics.Size
|
OnAttached(DataGridColumn)
Invoked when the renderer gets attached to a column.
Declaration
protected virtual void OnAttached(DataGridColumn column)
Parameters
DataGridColumn
column
|
OnDetached(DataGridColumn)
Invoked when the renderer gets detached from a column.
Declaration
protected virtual void OnDetached(DataGridColumn column)
Parameters
DataGridColumn
column
|
OnRenderCompleted()
Marks the end of the rendering of the cells related to this renderer.
Declaration
protected virtual void OnRenderCompleted()
OnRenderStarted()
Marks the beginning of the rendering of the cells related to this renderer.
Declaration
protected virtual void OnRenderStarted()
PrepareContainer(Object, Object)
Prepare the custom container.
Declaration
protected virtual void PrepareContainer(object container, object item)
Parameters
System.Object
container
|
System.Object
item
|
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
protected virtual void RenderContainer(DataGridCellRendererRenderContext renderContext)
Parameters
DataGridCellRendererRenderContext
renderContext
|
RequestRender()
Makes a request for a render pass to be scheduled.
Declaration
public void RequestRender()