Class GridUnBoundCellTemplateRenderer
Represents a class that maintains the rendering of unbound columns of SfDataGrid.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridUnBoundCellTemplateRenderer : GridVirtualizingCellRenderer<ContentControl, ContentControl>, IGridCellRenderer, IDisposable
Constructors
GridUnBoundCellTemplateRenderer()
Declaration
public GridUnBoundCellTemplateRenderer()
Methods
CanUpdateBinding(GridColumn)
Determines whether the binding for the column can be updated.Implement this method to update binding on particular renderer whether the data context is set.
Declaration
public override bool CanUpdateBinding(GridColumn column)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | Specifies the corresponding GridColumn. |
Returns
Type | Description |
---|---|
System.Boolean | True if the binding is updated for the column; otherwise false. |
Overrides
CanValidate()
Determines whether the cell validation is allowed. Implement this method to allow cell validation in particular renderer.
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the cell validation is allowed; otherwise false. |
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 | Specifies the corresponding row and column index of the cell. |
Windows.UI.Xaml.FrameworkElement | uiElement | Specifies the corresponding UiElement that is to be arranged. |
Windows.Foundation.Rect | cellRect | Specifies 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 | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.FrameworkElement | currentRendererElement | Specifies the corresponding renderer element. |
Overrides
OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)
Initializes the display element of the cell in column.
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 UIElement. |
System.Object | dataContext | Specifies the dataContext of the cell. |
Overrides
OnInitializeEditElement(DataColumnBase, ContentControl, Object)
Method which initialize the element with respect to corresponding UnBound value.
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 dataContext. |
Overrides
OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)
Initializes the binding for the Grid cell by column's cellTemplate and CellTemplateSelector.
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 UIElement. |
System.Object | dataContext | Specifies the dataContext of the cell. |
Overrides
OnUpdateTemplateBinding(DataColumnBase, ContentControl, Object)
Update the binding for the Grid cell by column's cellTemplate and CellTemplateSelector.
Declaration
public override void OnUpdateTemplateBinding(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 UIElement. |
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. |