Class GridCaptionSummaryCellRenderer
GridCaptionSummaryCellRenderer is a class for cell renderer that displays SfLabel in a GridCaptionSummaryCell. 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 GridCaptionSummaryCellRenderer : GridVirtualizingCellRendererBase<SfLabel, GridCaptionSummaryCell>, IGridCellRenderer, IDisposable
Constructors
GridCaptionSummaryCellRenderer()
Initializes a new instance of the GridCaptionSummaryCellRenderer class.
Declaration
public GridCaptionSummaryCellRenderer()
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.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 data column object containing the values to be updated in the view. |
SfLabel | view | A SfLabel view to be hosted inside the column element. |
Overrides
OnUpdateCellStyle(DataColumnBase)
Called from UpdateCellStyle(DataColumnBase) to update the cell style of the GridCaptionSummaryCell.
Declaration
protected override void OnUpdateCellStyle(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the grouped column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
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 data column object containing the values to be updated in the view. |
SfLabel | view | A SfLabel view to be updated inside the column element. |
Overrides
UpdateColumnElement(DataColumnBase)
Updates the column element of the passed dataColumn.
Declaration
protected override CellElement UpdateColumnElement(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Returns
Type | Description |
---|---|
CellElement | The column element. |