Class GridUnboundCellTextBoxRenderer
Class that deals with Unbound column with TextColumn Behavior.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.DataGrid.Renderers
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class GridUnboundCellTextBoxRenderer : GridVirtualizingCellRenderer<TextBlock, TextBox>, IGridCellRenderer, IDisposable
Constructors
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. |
Microsoft.UI.Xaml.RoutedEventArgs | e | The Microsoft.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. |
Microsoft.UI.Xaml.RoutedEventArgs | e | The Microsoft.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. |
Microsoft.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. |
Microsoft.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. |
Microsoft.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. |
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding UIElement. |
System.Object | dataContext | Specifies the data context. |
Overrides
OnPreviewTextInput(KeyRoutedEventArgs)
Raises the PreviewTextInput(KeyRoutedEventArgs) event.
Declaration
protected override void OnPreviewTextInput(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | e | The Microsoft.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 |
---|---|---|
Microsoft.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. |
Microsoft.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 |
---|---|---|
Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | e | The Microsoft.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. |