Class GridFilterRowComboBoxRendererBase
Represents a class which handles the filter operation that loads the ComboBoxAdv in a FilterRow.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.RowFilter
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridFilterRowComboBoxRendererBase : GridFilterRowCellRenderer<ContentControl, ComboBoxAdv>, IGridCellRenderer, IDisposable, IGridFilterRowRenderer
Constructors
GridFilterRowComboBoxRendererBase()
Initializes a new instance of the GridFilterRowComboBoxRendererBase class.
Declaration
public GridFilterRowComboBoxRendererBase()
Methods
GetFormattedString(Object)
This method is used to get the FormattedString for FilterElement, it returns the Actual Value with formatted text.
Declaration
public string GetFormattedString(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item |
Returns
Type |
---|
System.String |
InitializeEditBinding(ComboBoxAdv, DataColumnBase)
Initialize the ComboBoxAdv with required fields.
Declaration
protected virtual void InitializeEditBinding(ComboBoxAdv uiElement, DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
ComboBoxAdv | uiElement | The ComboBoxAdv that loaded in Edit mode. |
DataColumnBase | dataColumn | The DataColumn that loads the ComboBoxAdv. |
OnComboboxKeyDown(Object, KeyEventArgs)
Enven handler when Key is pressed in ComboBoxAdv.
Declaration
protected virtual void OnComboboxKeyDown(object sender, KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The ComboBoxAdv control. |
System.Windows.Input.KeyEventArgs | e | Arguments that returns the keydown informations. |
OnComboBoxSelectionChanged(Object, SelectionChangedEventArgs)
Enven handler when selection is changed in ComboBoxAdv.
Declaration
protected virtual void OnComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The ComboBoxAdv control. |
System.Windows.Controls.SelectionChangedEventArgs | e | Arguments that denotes the selection changes. |
OnCreateDisplayUIElement()
Method that invoked when the DisplayElement is loaded.
Declaration
protected override ContentControl OnCreateDisplayUIElement()
Returns
Type |
---|
System.Windows.Controls.ContentControl |
Overrides
OnCreateEditUIElement()
Called when [create edit unique identifier element].
Declaration
protected override ComboBoxAdv OnCreateEditUIElement()
Returns
Type |
---|
ComboBoxAdv |
Overrides
OnDropDownOpened(Object, EventArgs)
Called when ComboBox drop down openened
Declaration
protected virtual void OnDropDownOpened(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.EventArgs | e |
OnEditElementLoaded(Object, RoutedEventArgs)
Called when [edit element loaded].
Declaration
protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
System.Windows.RoutedEventArgs | e | The System.Windows.RoutedEventArgs instance containing the event data. |
Overrides
OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)
Called when [initialize display element].
Declaration
public override void OnInitializeDisplayElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn Which holds GridColumn, RowColumnIndex and GridCell |
System.Windows.Controls.ContentControl | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnInitializeEditElement(DataColumnBase, ComboBoxAdv, Object)
Called when [initialize edit element].
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, ComboBoxAdv uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn Which holds GridColumn, RowColumnIndex and GridCell |
ComboBoxAdv | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnUnwireEditUIElement(ComboBoxAdv)
UnWire the wired events.
Declaration
protected override void OnUnwireEditUIElement(ComboBoxAdv uiElement)
Parameters
Type | Name | Description |
---|---|---|
ComboBoxAdv | uiElement |
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. |