Xamarin.Forms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellTextViewRenderer - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridCellTextViewRenderer

    GridCellTextViewRenderer is a class for cell renderer that displays SfLabel in a GridCell. The class provides strong typed override methods for initializing Content of the cell and arranging the cell visuals.

    Upon editing it displays SfEntry for editing values. 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<SfLabel, SfEntry>
    GridVirtualizingCellRenderer<SfLabel, SfEntry>
    GridCellTextViewRenderer
    Implements
    IGridCellRenderer
    System.IDisposable
    Inherited Members
    GridVirtualizingCellRenderer<SfLabel, SfEntry>.UpdateEditViewCellStyle(DataColumnBase, SfEntry)
    GridVirtualizingCellRenderer<SfLabel, SfEntry>.OnInitializeDisplayView(DataColumnBase, SfLabel)
    GridVirtualizingCellRenderer<SfLabel, SfEntry>.OnUpdateDisplayValue(DataColumnBase, SfLabel)
    GridVirtualizingCellRenderer<SfLabel, SfEntry>.OnInitializeEditView(DataColumnBase, SfEntry)
    GridVirtualizingCellRenderer<SfLabel, SfEntry>.OnUpdateCellStyle(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.displayRecycleBin
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.editRecycleBin
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnPrepareViews(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnUnloadViews(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnUpdateColumnInfo(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnRefreshDisplayValue(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnLayout(RowColumnIndex, View, Int32, Int32, Int32, Int32)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnMeasure(RowColumnIndex, View, Int32, Int32)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnSetCellStyle(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.BeginEdit(RowColumnIndex, CellElement, GridColumn, Object)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.CommitCellValue(Boolean)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.EndEdit(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnCreateDisplayUIView()
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnCreateEditUIView()
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.WireEditUIElement(SfEntry)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.UnwireEditUIElement(SfEntry)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.OnEnteredEditMode(DataColumnBase, View)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.SuspendBinding(DataColumnBase, SfLabel)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.ResumeBinding(DataColumnBase, SfLabel)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.UpdateColumnElement(DataColumnBase)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.InitializeDisplayView(DataColumnBase, SfLabel)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.InitializeEditView(DataColumnBase, SfEntry)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.UpdateDisplayValue(DataColumnBase, SfLabel)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.Dispose(Boolean)
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.ClearRecycleBin()
    GridVirtualizingCellRendererBase<SfLabel, SfEntry>.AllowRecycle
    GridCellRendererBase.OnLayout(RowColumnIndex, View, Int32, Int32, Int32, Int32)
    GridCellRendererBase.OnMeasure(RowColumnIndex, View, Int32, Int32)
    GridCellRendererBase.OnPrepareViews(DataColumnBase)
    GridCellRendererBase.OnUpdateColumnInfo(DataColumnBase)
    GridCellRendererBase.OnRefreshDisplayValue(DataColumnBase)
    GridCellRendererBase.OnSetCellStyle(DataColumnBase)
    GridCellRendererBase.OnUpdateCellStyle(DataColumnBase)
    GridCellRendererBase.PrepareViews(DataColumnBase)
    GridCellRendererBase.UnloadViews(DataColumnBase)
    GridCellRendererBase.RefreshDisplayValue(DataColumnBase)
    GridCellRendererBase.IGridCellRenderer.UpdateColumnInfo(DataColumnBase)
    GridCellRendererBase.UpdateColumnInfo(DataColumnBase)
    GridCellRendererBase.UpdateCellValue(DataColumnBase)
    GridCellRendererBase.SetCellStyle(DataColumnBase)
    GridCellRendererBase.UpdateCellStyle(DataColumnBase)
    GridCellRendererBase.SetCurrentCellState(RowColumnIndex, CellElement, Boolean)
    GridCellRendererBase.UpdateCurrentCellState(View, Boolean)
    GridCellRendererBase.ResetCurrentCellState()
    GridCellRendererBase.SetFocus(Boolean)
    GridCellRendererBase.BeginEdit(RowColumnIndex, CellElement, GridColumn, Object)
    GridCellRendererBase.EndEdit(DataColumnBase, Object, Boolean)
    GridCellRendererBase.CommitCellValue(Boolean)
    GridCellRendererBase.ClearRecycleBin()
    GridCellRendererBase.CanUpdateBinding(DataColumnBase)
    GridCellRendererBase.SetFocus(View, Boolean)
    GridCellRendererBase.Dispose()
    GridCellRendererBase.Dispose(Boolean)
    GridCellRendererBase.DataGrid
    GridCellRendererBase.IsEditable
    GridCellRendererBase.IsFocusable
    GridCellRendererBase.HasCurrentCellState
    GridCellRendererBase.SupportsRenderOptimization
    GridCellRendererBase.CurrentCellIndex
    GridCellRendererBase.CurrentCellElement
    GridCellRendererBase.CurrentCellRendererElement
    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class GridCellTextViewRenderer : GridVirtualizingCellRenderer<SfLabel, SfEntry>, IGridCellRenderer, IDisposable

    Constructors

    GridCellTextViewRenderer()

    Initializes a new instance of the GridCellTextViewRenderer class.

    Declaration
    public GridCellTextViewRenderer()

    Methods

    GetControlValue()

    Returns the current cell value, only if the renderer's HasCurrentCellState is true.

    Declaration
    public override object GetControlValue()
    Returns
    Type Description
    System.Object

    The current cell value.

    Overrides
    GridCellRendererBase.GetControlValue()

    OnCreateDisplayUIView()

    Creates a new SfLabel view and initializes it with the required properties.

    Declaration
    protected override SfLabel OnCreateDisplayUIView()
    Returns
    Type Description
    SfLabel

    A new SfLabel view.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRendererBase<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.OnCreateDisplayUIView()

    OnInitializeDisplayView(DataColumnBase, SfLabel)

    Initializes the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given SfLabel view and required values.

    Declaration
    public override void OnInitializeDisplayView(DataColumnBase dataColumn, SfLabel view)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    The dataColumn containing the details of the column.

    SfLabel view

    A SfLabel object to be hosted inside the column element.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRenderer<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.OnInitializeDisplayView(Syncfusion.SfDataGrid.XForms.DataColumnBase, Syncfusion.SfDataGrid.XForms.SfLabel)

    OnInitializeEditView(DataColumnBase, SfEntry)

    Initializes the edit column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given SfEntry view and required values.

    Declaration
    public override void OnInitializeEditView(DataColumnBase dataColumn, SfEntry view)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    The dataColumn containing the details of the column.

    SfEntry view

    The child view to be hosted inside the column element.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRenderer<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.OnInitializeEditView(Syncfusion.SfDataGrid.XForms.DataColumnBase, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry)

    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.XForms.DataColumnBase dataColumn

    The dataColumn containing the details of the column.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRendererBase<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.OnUnloadViews(Syncfusion.SfDataGrid.XForms.DataColumnBase)

    OnUpdateCellValue(DataColumnBase)

    Updates the cell value of the associated column.

    Declaration
    protected override void OnUpdateCellValue(DataColumnBase dataColumn)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    The data column.

    Overrides
    GridCellRendererBase.OnUpdateCellValue(DataColumnBase)

    OnUpdateDisplayValue(DataColumnBase, SfLabel)

    Updates the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given SfLabel view and required values.

    Declaration
    public override void OnUpdateDisplayValue(DataColumnBase dataColumn, SfLabel view)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    The dataColumn containing the details of the column.

    SfLabel view

    A SfLabel view to be updated inside the column element.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRenderer<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.OnUpdateDisplayValue(Syncfusion.SfDataGrid.XForms.DataColumnBase, Syncfusion.SfDataGrid.XForms.SfLabel)

    ResumeBinding(DataColumnBase, SfLabel)

    Resumes the binding value.

    Declaration
    protected override void ResumeBinding(DataColumnBase dataColumn, SfLabel view)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    DataColumnBase instance.

    SfLabel view

    current view.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRendererBase<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.ResumeBinding(Syncfusion.SfDataGrid.XForms.DataColumnBase, Syncfusion.SfDataGrid.XForms.SfLabel)

    SetControlValue(Object)

    Set the current cell value, only if the renderer's HasCurrentCellState is true.

    Declaration
    public override void SetControlValue(object value)
    Parameters
    Type Name Description
    System.Object value

    The value to be set to the current cell.

    Overrides
    GridCellRendererBase.SetControlValue(Object)

    SuspendBinding(DataColumnBase, SfLabel)

    Suspends the binding value.

    Declaration
    protected override void SuspendBinding(DataColumnBase dataColumn, SfLabel view)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    DataColumnBase instance.

    SfLabel view

    current view.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRendererBase<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.SuspendBinding(Syncfusion.SfDataGrid.XForms.DataColumnBase, Syncfusion.SfDataGrid.XForms.SfLabel)

    UpdateEditViewCellStyle(DataColumnBase, SfEntry)

    Updates the cell style of the edit element in a grid cell.

    Declaration
    protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, SfEntry editView)
    Parameters
    Type Name Description
    Syncfusion.SfDataGrid.XForms.DataColumnBase dataColumn

    The data column.

    SfEntry editView

    The edit view hosted inside a column element.

    Overrides
    Syncfusion.SfDataGrid.XForms.GridVirtualizingCellRenderer<Syncfusion.SfDataGrid.XForms.SfLabel, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry>.UpdateEditViewCellStyle(Syncfusion.SfDataGrid.XForms.DataColumnBase, Syncfusion.SfDataGrid.XForms.Renderers.SfEntry)

    Implements

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