Class DataGridCellRenderer
Allows rendering of custom content for the cells of the Rad
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.
|
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.
|
Returns
System.
|
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
Data
|
System.
|
Returns
System.
|
MeasureContainer(DataGridCellRendererMeasureContext)
Return the desired size for the current item in device independent pixels.
Declaration
protected virtual Size MeasureContainer(DataGridCellRendererMeasureContext measureContext)
Parameters
Data
|
Returns
Microsoft.
|
OnAttached(DataGridColumn)
Invoked when the renderer gets attached to a column.
Declaration
protected virtual void OnAttached(DataGridColumn column)
Parameters
Data
|
OnDetached(DataGridColumn)
Invoked when the renderer gets detached from a column.
Declaration
protected virtual void OnDetached(DataGridColumn column)
Parameters
Data
|
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.
|
System.
|
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
Data
|
RequestRender()
Makes a request for a render pass to be scheduled.
Declaration
public void RequestRender()