Class GridUnBoundRowCellTextBoxRenderer
Class that deals with UnBoundRow textcolumn cell.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridUnBoundRowCellTextBoxRenderer : GridUnBoundRowCellRenderer<TextBlock, TextBox>, IGridCellRenderer, IDisposable
Constructors
GridUnBoundRowCellTextBoxRenderer()
Declaration
public GridUnBoundRowCellTextBoxRenderer()
Methods
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 |
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 was loaded in edit mdoe |
Overrides
OnInitializeDisplayElement(DataColumnBase, TextBlock, Object)
Method which initlaize the 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
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 | The corresponding edit UIElement to unwire its events. |
Overrides
SetControlValue(Object)
Sets the control value.
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown when the value cannot be set for unloaded editor. |
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 | A Windows.UI.Xaml.Input.KeyRoutedEventArgs object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parent grid should be allowed to handle keys; otherwise false. |