Class GridCellTextViewRenderer
GridCellTextViewRenderer 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 UIKit.UITextField 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
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class GridCellTextViewRenderer : GridVirtualizingCellRenderer<UILabel, UITextField>, 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
OnCreateDisplayUIView()
Creates a new view or reuses the existing view if reusing can be applied here
Declaration
protected override UILabel OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
UIKit.UILabel | Returns a created new view or reuses the existing view if reusing can be applied here |
Overrides
OnInitializeEditView(DataColumnBase, UITextField)
Initializes the edit element of a Syncfusion.SfDataGrid.DataColumn object with the given UIKit.UITextField view and required values.
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, UITextField view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
UIKit.UITextField | 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, UITextField)
Updates the cell style of the edit element in a grid cell.
Declaration
protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, UITextField editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
UIKit.UITextField | editView | The edit view hosted inside a column element. |