Class GridCellTemplateRenderer
Represents a class that maintains the Rendering of GridTemplateColumn.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridCellTemplateRenderer : GridVirtualizingCellRenderer<ContentControl, ContentControl>, IGridCellRenderer, IDisposable
Constructors
GridCellTemplateRenderer()
Declaration
public GridCellTemplateRenderer()
Methods
CanValidate()
Determines whether the cell validation is allowed.
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean | true if the cell validation is allowed; otherwise false. |
Overrides
InitializeCellStyle(DataColumnBase, Object)
Initializes the cell style.
Declaration
protected override void InitializeCellStyle(DataColumnBase dataColumn, object record)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn which holds GridColumn, RowColumnIndex and GridCell. |
System.Object | record | The record. |
Overrides
OnArrange(RowColumnIndex, FrameworkElement, Rect)
Invoked when the visual children of cell is arranged in view.
Declaration
protected override void OnArrange(RowColumnIndex cellRowColumnIndex, FrameworkElement uiElement, Rect cellRect)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | The corresponding row and column index of the cell. |
Windows.UI.Xaml.FrameworkElement | uiElement | The corresponding UiElement that is to be arranged. |
Windows.Foundation.Rect | cellRect | The corresponding size of cell element for arranging the UIElement. |
Overrides
OnEditingComplete(DataColumnBase, FrameworkElement)
Invoked when the editing is completed on the cell.
Declaration
protected override void OnEditingComplete(DataColumnBase dataColumn, FrameworkElement currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The corresponding column. |
Windows.UI.Xaml.FrameworkElement | currentRendererElement | The corresponding renderer element. |
Overrides
OnEnteredEditMode(DataColumnBase, FrameworkElement)
Invoked when the cell is being entered the edit mode.
Declaration
protected override void OnEnteredEditMode(DataColumnBase dataColumn, FrameworkElement currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.FrameworkElement | currentRendererElement | Specifies the current renderer element. |
Overrides
OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)
Method which initialize the display element.
Declaration
public override void OnInitializeDisplayElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnInitializeEditElement(DataColumnBase, ContentControl, Object)
Method which is used to initialize the renderer element bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)
Called when initialize template element.
Declaration
public override void OnInitializeTemplateElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnUnwireDisplayUIElement(ContentControl)
Called when unwire display unique identifier element.
Declaration
protected override void OnUnwireDisplayUIElement(ContentControl uiElement)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.ContentControl | uiElement | The unique identifier element. |
Overrides
OnUnwireEditUIElement(ContentControl)
Called when unwire edit unique identifier element.
Declaration
protected override void OnUnwireEditUIElement(ContentControl uiElement)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.ContentControl | uiElement | The unique identifier element. |
Overrides
OnUpdateEditBinding(DataColumnBase, ContentControl, Object)
Updates the binding for editor control for the specified column.
Declaration
public override void OnUpdateEditBinding(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the dataContext of the cell. |
Overrides
ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
Handles the key interaction with editor of corresponding column.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | The Windows.UI.Xaml.Input.KeyRoutedEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the parent grid should be allowed to handle keys; otherwise false. |