Class GridTableSummaryCellRenderer
GridTableSummaryCellRenderer is a class for cell renderer that displays SfLabel in a GridTableSummaryCell. 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.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class GridTableSummaryCellRenderer : GridVirtualizingCellRendererBase<SfLabel, GridTableSummaryCell>, IGridCellRenderer, IDisposable
Constructors
GridTableSummaryCellRenderer()
Initializes a new instance of the GridTableSummaryCellRenderer class.
Declaration
public GridTableSummaryCellRenderer()
Methods
CanUpdateBinding(DataColumnBase)
Determines whether the binding for the column can be updated. Implement this method to update binding on particular renderer when the data context is set.
Declaration
public override bool CanUpdateBinding(DataColumnBase dataColumnBase)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumnBase | The corresponding column for which the binding update should be determined. |
Returns
Type | Description |
---|---|
System.Boolean | True if the binding is updated for the column, otherwise false. |
Overrides
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
OnInitializeDisplayView(DataColumnBase, SfLabel)
Initializes the column element of a Syncfusion.SfDataGrid.XForms.SpannedDataColumn 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
OnUpdateCellStyle(DataColumnBase)
Called from UpdateCellStyle(DataColumnBase) to update the cell style of the GridTableSummaryCell.
Declaration
protected override void OnUpdateCellStyle(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The spanned data column. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates cell value of the spanned data column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The spanned data column. |
Overrides
OnUpdateDisplayValue(DataColumnBase, SfLabel)
Updates the column element of a Syncfusion.SfDataGrid.XForms.SpannedDataColumn 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 object to be hosted inside the column element. |
Overrides
UpdateColumnElement(DataColumnBase)
Updates the column element of the passed spanned data column.
Declaration
protected override CellElement UpdateColumnElement(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The spanned data column. |
Returns
Type | Description |
---|---|
CellElement | The column element. |