Class GridCellNumericRenderer
GridCellNumericRenderer is a class for cell renderer that displays UIKit.UILabel 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 SfNumericTextBox 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.Renderers
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class GridCellNumericRenderer : GridVirtualizingCellRenderer<UILabel, SfNumericTextBox>, IGridCellRenderer, IDisposable
Constructors
GridCellNumericRenderer()
Initializes a new instance of the GridCellNumericRenderer class.
Declaration
public GridCellNumericRenderer()
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 UIKit.UILabel view and initializes it with the required properties.
Declaration
protected override UILabel OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
UIKit.UILabel | A new UIKit.UILabel view. |
Overrides
OnCreateEditUIView()
Creates a new view for the edit mode of cell.
Declaration
protected override SfNumericTextBox OnCreateEditUIView()
Returns
Type | Description |
---|---|
SfNumericTextBox | Returns the new view for edit mode of cell. |
Overrides
OnInitializeEditView(DataColumnBase, SfNumericTextBox)
Initializes the edit column element of a Syncfusion.SfDataGrid.DataColumn object with the given view and required values.
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, SfNumericTextBox view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column object containing the values to be updated in the view. |
SfNumericTextBox | view | The child view to be hosted inside the 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.DataColumnBase | dataColumn | The data column. |
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
SetFocus(UIView, Boolean)
Sets the focus for the editing view.
Declaration
protected override void SetFocus(UIView view, bool needToFocus)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIView | view | Current cell renderer element |
System.Boolean | needToFocus | Returns whether focus has to be set or not. |
Overrides
UpdateEditViewCellStyle(DataColumnBase, SfNumericTextBox)
Updates the cell style of the edit element in a grid cell.
Declaration
protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, SfNumericTextBox editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
SfNumericTextBox | editView | The edit view hosted inside a column element. |