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, IDisposable
Constructors
GridUnBoundCellTextBoxRenderer()
Declaration
public GridUnBoundCellTextBoxRenderer()
Methods
CanUpdateBinding(GridColumn)
Declaration
public override bool CanUpdateBinding(GridColumn column)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetControlValue()
Gets the control value.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object |
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 | DataColumn which holds GridColumn, RowColumnIndex and GridCell |
Windows.UI.Xaml.FrameworkElement | currentRendererElement | 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 | DataColumn which holds GridColumn, RowColumnIndex and GridCell |
Windows.UI.Xaml.Controls.TextBlock | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnInitializeEditElement(DataColumnBase, TextBox, Object)
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, TextBox uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | |
Windows.UI.Xaml.Controls.TextBox | uiElement | |
System.Object | dataContext |
Overrides
OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)
Declaration
public override void OnInitializeTemplateElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | |
Windows.UI.Xaml.Controls.ContentControl | uiElement | |
System.Object | dataContext |
Overrides
OnPreviewTextInput(KeyRoutedEventArgs)
Raises the PreviewTextInput event.
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)
Called when [unwire edit unique identifier element].
Declaration
protected override void OnUnwireEditUIElement(TextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.TextBox | uiElement | The unique identifier element. |
Overrides
OnUpdateTemplateBinding(DataColumnBase, ContentControl, Object)
Declaration
public override void OnUpdateTemplateBinding(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | |
Windows.UI.Xaml.Controls.ContentControl | uiElement | |
System.Object | dataContext |
Overrides
SetControlValue(Object)
Sets the control value.
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Overrides
ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
Let Renderer decide whether the parent grid should be allowed to handle keys and prevent the key event from being handled by the visual UIElement for this renderer. If this method returns true the parent grid will handle arrow keys and set the Handled flag in the event data. Keys that the grid does not handle will be ignored and be routed to the UIElement for this renderer.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | A Windows.UI.Xaml.Input.KeyRoutedEventArgs object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parent grid should be allowed to handle keys; false otherwise. |