ClassDataGridCellRenderer
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:
public abstract class DataGridCellRenderer
Inheritance: objectDataGridCellRenderer
Constructors
DataGridCellRenderer()
Declaration
protected DataGridCellRenderer()
Methods
ClearContainer(object)
Clear the custom container.
Declaration
protected virtual void ClearContainer(object container)
Parameters
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.
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
column
item
Returns
MeasureContainer(DataGridCellRendererMeasureContext)
Return the desired size for the current item in device independent pixels.
Declaration
protected virtual Size MeasureContainer(DataGridCellRendererMeasureContext measureContext)
Parameters
measureContext
Returns
Size
OnAttached(DataGridColumn)
Invoked when the renderer gets attached to a column.
Declaration
protected virtual void OnAttached(DataGridColumn column)
Parameters
column
OnDetached(DataGridColumn)
Invoked when the renderer gets detached from a column.
Declaration
protected virtual void OnDetached(DataGridColumn column)
Parameters
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.
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
renderContext
RequestRender()
Makes a request for a render pass to be scheduled.
Declaration
public void RequestRender()