Class GridUnBoundCellTextBoxRenderer
Claas that deals with UnBound column with TexColumn Behavior.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridUnBoundCellTextBoxRenderer : GridVirtualizingCellRenderer<TextBlock, TextBox>, IGridCellRenderer, IDisposableConstructors
GridUnBoundCellTextBoxRenderer()
Declaration
public GridUnBoundCellTextBoxRenderer()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
GetControlValue()
Gets the control value of the cell.
Declaration
public override object GetControlValue()Returns
| Type | Description | 
|---|---|
| System.Object | Returns the control value of the cell. | 
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Invoked when the edit element(TextBox) is loaded on the cell in column.
Declaration
protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | sender | The sender. | 
| Windows.UI.Xaml.RoutedEventArgs | e | The Windows.UI.Xaml.RoutedEventArgs instance containing the event data. | 
Overrides
OnEditElementUnloaded(Object, RoutedEventArgs)
Invoked when the edit element(TextBox) is unloaded on the cell in column.
Declaration
protected override void OnEditElementUnloaded(object sender, RoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | sender | The sender. | 
| Windows.UI.Xaml.RoutedEventArgs | e | The Windows.UI.Xaml.RoutedEventArgs instance containing the event data. | 
Overrides
OnEditingComplete(DataColumnBase, FrameworkElement)
When complete edit, we need to raise query again to provide entered value to customer.
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 UIElement that resides in GridUnBoundCell | 
Overrides
OnInitializeDisplayElement(DataColumnBase, TextBlock, Object)
Called when initialize display element.
Declaration
public override void OnInitializeDisplayElement(DataColumnBase dataColumn, TextBlock uiElement, object dataContext)Parameters
| Type | Name | Description | 
|---|---|---|
| DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. | 
| Windows.UI.Xaml.Controls.TextBlock | uiElement | Specifies the corresponding renderer element | 
| System.Object | dataContext | Specifies the data context. | 
Overrides
OnInitializeEditElement(DataColumnBase, TextBox, Object)
Initializes the binding for editor of corresponding column.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, TextBox uiElement, object dataContext)Parameters
| Type | Name | Description | 
|---|---|---|
| DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. | 
| Windows.UI.Xaml.Controls.TextBox | uiElement | Specifies the corresponding UIElement. | 
| System.Object | dataContext | Specifies the data context. | 
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 DataColumnBase. | 
| Windows.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding UIElement. | 
| System.Object | dataContext | Specifies the data context. | 
Overrides
OnPreviewTextInput(KeyRoutedEventArgs)
Raises the 
Declaration
protected override void OnPreviewTextInput(KeyRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | The Windows.UI.Xaml.Input.KeyRoutedEventArgs instance containing the event data. | 
Overrides
OnUnwireEditUIElement(TextBox)
Unwires the events associated with edit UIElement.
Declaration
protected override void OnUnwireEditUIElement(TextBox uiElement)Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.Controls.TextBox | uiElement | Specifies the corresponding edit UIElement to unwire its events. | 
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 data context. | 
Overrides
SetControlValue(Object)
Sets the control value of the cell.
Declaration
public override void SetControlValue(object value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | Specifies the value to set the control value 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. |