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:
public abstract class DataGridCellRenderer
Inheritance: objectDataGridCellRenderer
Constructors
protected DataGridCellRenderer()
Methods
Clear the custom container.
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.
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.
protected virtual object GetContainerType(DataGridColumn column, object item)
Return the desired size for the current item in device independent pixels.
protected virtual Size MeasureContainer(DataGridCellRendererMeasureContext measureContext)
Size
Invoked when the renderer gets attached to a column.
Invoked when the renderer gets detached from a column.
Marks the end of the rendering of the cells related to this renderer.
protected virtual void OnRenderCompleted()
Marks the beginning of the rendering of the cells related to this renderer.
protected virtual void OnRenderStarted()
Render any custom content for the current item. Invoke the base implementation of this method if you want to render the default render content.
protected virtual void RenderContainer(DataGridCellRendererRenderContext renderContext)
Makes a request for a render pass to be scheduled.
public void RequestRender()