Class GridCellSwitchRenderer
GridCellSwitchRenderer is a class for cell renderer that displays Android.Widget.CheckBox in a GridCell. The class provides strong typed override methods for initializing Content of the cell and arranging the cell visuals.
Updates to appearance and Content of child elements, creation and unloading of views will not trigger layout or render calls in parent canvas.
Inheritance
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridCellSwitchRenderer : GridVirtualizingCellRendererBase<CheckBox, CheckBox>, IGridCellRenderer, IDisposable
Constructors
GridCellSwitchRenderer()
Initializes a new instance of the GridCellSwitchRenderer class.
Declaration
public GridCellSwitchRenderer()
Methods
CreateOrRecycleDisplayUIView()
Creates a new view or reuses the existing view if reusing can be applied here
Declaration
protected override CheckBox CreateOrRecycleDisplayUIView()
Returns
Type | Description |
---|---|
Android.Widget.CheckBox | Returns a created new view or reuses the existing view if reusing can be applied here |
Overrides
OnCreateDisplayUIView()
Creates a new Android.Widget.CheckBox view.
Declaration
protected override CheckBox OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
Android.Widget.CheckBox | A new Android.Widget.CheckBox view. |
Overrides
OnInitializeDisplayView(DataColumnBase, CheckBox)
Initializes the column element of a Syncfusion.SfDataGrid.DataColumn object with the given Android.Widget.CheckBox and required values.
Declaration
public override void OnInitializeDisplayView(DataColumnBase dataColumn, CheckBox view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Android.Widget.CheckBox | view | A Android.Widget.CheckBox view to be hosted inside the column element. |
Overrides
OnUnloadViews(DataColumnBase)
Called from UnloadViews(DataColumnBase) after a cell is scrolled out of view. GridVirtualizingCellRendererBase<T1, T2> overrides this method and either removes the cell renderer visuals from the parent canvas or hide them and reuse it later in same canvas depending on whether AllowRecycle was set.
Declaration
protected override void OnUnloadViews(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the toggle value of the Android.Widget.CheckBox.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateDisplayValue(DataColumnBase, CheckBox)
Updates the column element of a Syncfusion.SfDataGrid.DataColumn object with the given Android.Widget.CheckBox and required values.
Declaration
public override void OnUpdateDisplayValue(DataColumnBase dataColumn, CheckBox view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Android.Widget.CheckBox | view | A Android.Widget.CheckBox to be updated inside the column element. |