New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI TreeDataGrid SkiaSharp Cell Renderer

When your .NET MAUI TreeDataGrid is rendered with the SkiaSharp library, you can extend the functionality of a DataGrid column and render custom cell content.

  • CellRenderer(DataGridCellRenderer)—Defines a renderer that allows custom rendering of cells when the TreeDataGrid is rendered with SkiaSharp. To use this in iOS and MacCatalyst, the RadTreeDataGrid.RenderMode needs to be set to SkiaSharp.

Check the Render Mode topic for more information on the TreeDataGrid SkiaSharp rendering.

The DataGridCellRenderer provides the following methods you can override to define any custom SkiaSharp content inside each cell:

  • MeasureContainer—Returns the desired size for the current item in device independent pixels.
  • RenderContainer—Renders any custom content for the current item. Invoke the base implementation of this method if you want to render the default render content.
  • RequestRender—Makes a request for a render pass to be scheduled.
  • OnRenderStarted—Marks the beginning of the rendering of the cells related to this renderer.
  • OnRenderCompleted—Marks the end of the rendering of the cells related to this renderer.

See Also

In this article