Class TreeGridCellComboBoxRenderer
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid.Cells
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridCellComboBoxRenderer : TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridCellComboBoxRenderer()
Declaration
public TreeGridCellComboBoxRenderer()
Fields
lastKeyPressed
Declaration
public Key? lastKeyPressed
Field Value
Type | Description |
---|---|
System.Nullable<System.Windows.Input.Key> |
Methods
EndEdit(TreeDataColumnBase, Object, Boolean)
Declaration
public override bool EndEdit(TreeDataColumnBase dc, object record, bool canResetBinding = false)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dc | |
System.Object | record | |
System.Boolean | canResetBinding |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetControlValue()
Gets the control value.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object |
Overrides
OnCreateDisplayUIElement()
Declaration
protected override ContentControl OnCreateDisplayUIElement()
Returns
Type | Description |
---|---|
System.Windows.Controls.ContentControl |
Overrides
OnCreateEditUIElement()
Called when [create edit unique identifier element].
Declaration
protected override ComboBox OnCreateEditUIElement()
Returns
Type | Description |
---|---|
System.Windows.Controls.ComboBox |
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Declaration
protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.Windows.RoutedEventArgs | e |
Overrides
OnEnteredEditMode(TreeDataColumnBase, FrameworkElement)
Declaration
protected override void OnEnteredEditMode(TreeDataColumnBase dataColumn, FrameworkElement currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | |
System.Windows.FrameworkElement | currentRendererElement |
Overrides
OnInitializeDisplayElement(TreeDataColumnBase, ContentControl, Object)
Called when [initialize display element].
Declaration
public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | TreeDataColumn Which holds TreeGridColumn, RowColumnIndex and GridCell |
System.Windows.Controls.ContentControl | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnInitializeEditElement(TreeDataColumnBase, ComboBox, Object)
Called when [initialize edit element].
Declaration
public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, ComboBox uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | DataColumn Which holds TreeGridColumn, RowColumnIndex and TreeGridCell |
System.Windows.Controls.ComboBox | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnUnwireEditUIElement(ComboBox)
Declaration
protected override void OnUnwireEditUIElement(ComboBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.ComboBox | uiElement |
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(KeyEventArgs)
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(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | A System.Windows.Input.KeyEventArgs object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parent grid should be allowed to handle keys; false otherwise. |