menu

Class GridCellSwitchRenderer - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    GridCellRendererBase
    GridVirtualizingCellRendererBase<Android.Widget.CheckBox, Android.Widget.CheckBox>
    GridCellSwitchRenderer
    Implements
    IGridCellRenderer
    System.IDisposable
    Inherited Members
    GridCellRendererBase.BeginEdit(RowColumnIndex, CellElement, GridColumn, Object)
    GridCellRendererBase.CanUpdateBinding(DataColumnBase)
    GridCellRendererBase.ClearRecycleBin()
    GridCellRendererBase.CommitCellValue(Boolean)
    GridCellRendererBase.Context
    GridCellRendererBase.CurrentCellElement
    GridCellRendererBase.CurrentCellIndex
    GridCellRendererBase.CurrentCellRendererElement
    GridCellRendererBase.DataGrid
    GridCellRendererBase.Dispose()
    GridCellRendererBase.Dispose(Boolean)
    GridCellRendererBase.EndEdit(DataColumnBase, Object)
    GridCellRendererBase.GetControlValue()
    GridCellRendererBase.HasCurrentCellState
    GridCellRendererBase.IGridCellRenderer.UpdateColumnInfo(DataColumnBase)
    GridCellRendererBase.IsEditable
    GridCellRendererBase.IsFocusable
    GridCellRendererBase.Layout(RowColumnIndex, View, Int32, Int32, Int32, Int32)
    GridCellRendererBase.Measure(RowColumnIndex, View, Int32, Int32)
    GridCellRendererBase.OnLayout(RowColumnIndex, View, Int32, Int32, Int32, Int32)
    GridCellRendererBase.OnMeasure(RowColumnIndex, View, Int32, Int32)
    GridCellRendererBase.OnPrepareViews(DataColumnBase)
    GridCellRendererBase.OnRefreshDisplayValue(DataColumnBase)
    GridCellRendererBase.OnUpdateCellStyle(DataColumnBase)
    GridCellRendererBase.OnUpdateColumnInfo(DataColumnBase)
    GridCellRendererBase.PrepareViews(DataColumnBase)
    GridCellRendererBase.RefreshDisplayValue(DataColumnBase)
    GridCellRendererBase.ResetCurrentCellState()
    GridCellRendererBase.SetControlValue(Object)
    GridCellRendererBase.SetCurrentCellState(RowColumnIndex, CellElement, Boolean)
    GridCellRendererBase.SetFocus(Boolean)
    GridCellRendererBase.SetFocus(View, Boolean)
    GridCellRendererBase.SupportsRenderOptimization
    GridCellRendererBase.UnloadViews(DataColumnBase)
    GridCellRendererBase.UpdateCellStyle(DataColumnBase)
    GridCellRendererBase.UpdateCellValue(DataColumnBase)
    GridCellRendererBase.UpdateColumnInfo(DataColumnBase)
    GridCellRendererBase.UpdateCurrentCellState(View, Boolean)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.AllowRecycle
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.BeginEdit(RowColumnIndex, CellElement, GridColumn, Object)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.ClearRecycleBin()
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.CommitCellValue(Boolean)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.CreateOrRecycleDisplayUIView()
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.displayRecycleBin
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.Dispose(Boolean)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.editRecycleBin
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.EndEdit(DataColumnBase, Object)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.InitializeDisplayView(DataColumnBase, CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.InitializeEditView(DataColumnBase, CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnCreateDisplayUIView()
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnCreateEditUIView()
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnEnteredEditMode(DataColumnBase, View)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnInitializeDisplayView(DataColumnBase, CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnInitializeEditView(DataColumnBase, CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnLayout(RowColumnIndex, View, Int32, Int32, Int32, Int32)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnMeasure(RowColumnIndex, View, Int32, Int32)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnPrepareViews(DataColumnBase)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnRefreshDisplayValue(DataColumnBase)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnUnloadViews(DataColumnBase)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnUpdateColumnInfo(DataColumnBase)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.OnUpdateDisplayValue(DataColumnBase, CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.UnwireEditUIElement(CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.UpdateColumnElement(DataColumnBase)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.UpdateDisplayValue(DataColumnBase, CheckBox)
    GridVirtualizingCellRendererBase<CheckBox, CheckBox>.WireEditUIElement(CheckBox)
    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
    Syncfusion.SfDataGrid.GridVirtualizingCellRendererBase<Android.Widget.CheckBox, Android.Widget.CheckBox>.CreateOrRecycleDisplayUIView()

    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
    Syncfusion.SfDataGrid.GridVirtualizingCellRendererBase<Android.Widget.CheckBox, Android.Widget.CheckBox>.OnCreateDisplayUIView()

    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
    Syncfusion.SfDataGrid.GridVirtualizingCellRendererBase<Android.Widget.CheckBox, Android.Widget.CheckBox>.OnInitializeDisplayView(Syncfusion.SfDataGrid.DataColumnBase, Android.Widget.CheckBox)

    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
    Syncfusion.SfDataGrid.GridVirtualizingCellRendererBase<Android.Widget.CheckBox, Android.Widget.CheckBox>.OnUnloadViews(Syncfusion.SfDataGrid.DataColumnBase)

    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
    GridCellRendererBase.OnUpdateCellValue(DataColumnBase)

    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.

    Overrides
    Syncfusion.SfDataGrid.GridVirtualizingCellRendererBase<Android.Widget.CheckBox, Android.Widget.CheckBox>.OnUpdateDisplayValue(Syncfusion.SfDataGrid.DataColumnBase, Android.Widget.CheckBox)

    Implements

    IGridCellRenderer
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved