Class GridCellTemplateRenderer
Represents a class that maintains the Rendering of GridTemplateColumn.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.WPF.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. |
System.Windows.FrameworkElement | uiElement | The corresponding UiElement that is to be arranged. |
System.Windows.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. |
System.Windows.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. |
System.Windows.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. |
System.Windows.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. |
System.Windows.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. |
System.Windows.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnRenderContent(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, Object)
Declaration
protected override void OnRenderContent(DrawingContext dc, Rect cellRect, Geometry clipGeometry, DataColumnBase dataColumnBase, GridCell gridCell, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | |
System.Windows.Rect | cellRect | |
System.Windows.Media.Geometry | clipGeometry | |
DataColumnBase | dataColumnBase | |
GridCell | gridCell | |
System.Object | dataContext |
Overrides
OnUnwireDisplayUIElement(ContentControl)
Called when unwire display unique identifier element.
Declaration
protected override void OnUnwireDisplayUIElement(ContentControl uiElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.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 |
---|---|---|
System.Windows.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. |
System.Windows.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the dataContext of the cell. |
Overrides
ShouldGridTryToHandleKeyDown(KeyEventArgs)
Handles the key interaction with editor of corresponding column.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | The System.Windows.Input.KeyEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the parent grid should be allowed to handle keys; otherwise false. |