Class GridCellComboBoxRenderer
GridCellComboBoxRenderer 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 GridComboBox 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
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class GridCellComboBoxRenderer : GridVirtualizingCellRenderer<SfLabel, GridComboBox>, IGridCellRenderer, IDisposable
Constructors
GridCellComboBoxRenderer()
Initializes a new instance of the GridCellComboBoxRenderer class.
Declaration
public GridCellComboBoxRenderer()
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
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
OnCreateEditUIView()
Creates a new view for the edit mode of cell.
Declaration
protected override GridComboBox OnCreateEditUIView()
Returns
Type | Description |
---|---|
GridComboBox | Returns the new view for edit mode of cell. |
Overrides
OnInitializeEditView(DataColumnBase, GridComboBox)
Initialize the edit view and it's properties.
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, GridComboBox view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column object containing the values to be updated in the view. |
GridComboBox | view | The view hosted inside a column element. |
Overrides
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 object containing the values to be updated in the view. |
Overrides
ResumeBinding(DataColumnBase, SfLabel)
Resume the binding of a SfLabel view Syncfusion.SfDataGrid.XForms.DataColumn .
Declaration
protected override void ResumeBinding(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 | The child view to be hosted inside the column element. |
Overrides
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
SuspendBinding(DataColumnBase, SfLabel)
Suspend the binding of a SfLabel view Syncfusion.SfDataGrid.XForms.DataColumn .
Declaration
protected override void SuspendBinding(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 | The child view to be hosted inside the column element. |
Overrides
UnwireEditUIElement(GridComboBox)
Unwires the edit element to the view.
Declaration
protected override void UnwireEditUIElement(GridComboBox editElement)
Parameters
Type | Name | Description |
---|---|---|
GridComboBox | editElement | The edit element hosted inside a view. |
Overrides
UpdateEditViewCellStyle(DataColumnBase, GridComboBox)
Updates the cell style of the edit element in a grid cell.
Declaration
protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, GridComboBox editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column object containing the values to be updated in the view. |
GridComboBox | editView | The edit view hosted inside a column element. |
Overrides
WireEditUIElement(GridComboBox)
Wires the edit element to the view.
Declaration
protected override void WireEditUIElement(GridComboBox editElement)
Parameters
Type | Name | Description |
---|---|---|
GridComboBox | editElement | The edit element hosted inside a view. |