Class GridFilterRowDateTimeRenderer
Represents a class which handles the filter operation that loads the DateTimeEdit in a FilterRow.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.RowFilter
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridFilterRowDateTimeRenderer : GridFilterRowCellRenderer<TextBlock, DateTimeEdit>, IGridCellRenderer, IDisposable, IGridFilterRowRenderer
Constructors
GridFilterRowDateTimeRenderer()
Initializes a new instance of the
Declaration
public GridFilterRowDateTimeRenderer()
Methods
GetControlValue()
Gets the control value.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object | The control value. |
Overrides
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
OnEditingComplete(DataColumnBase, FrameworkElement)
Invoked when the editing is completed on the cell.
Declaration
protected override void OnEditingComplete(DataColumnBase dataColumn, FrameworkElement currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The corresponding column. |
System.Windows.FrameworkElement | currentRendererElement | The corresponding renderer element. |
Overrides
OnFilterRowConditionChanged(String)
Process the filtering when the FilterRowCondition is changed in the corresponding column.
Declaration
public override void OnFilterRowConditionChanged(string filterRowCondition)
Parameters
Type | Name | Description |
---|---|---|
System.String | filterRowCondition | The new FilterRowCondition that has been changed. |
Overrides
OnInitializeDisplayElement(DataColumnBase, TextBlock, Object)
Method which initializes the display element of the column.
Declaration
public override void OnInitializeDisplayElement(DataColumnBase dataColumn, TextBlock uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the DataColumnBase. |
System.Windows.Controls.TextBlock | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context. |
Overrides
OnInitializeEditElement(DataColumnBase, DateTimeEdit, Object)
Method which is used to initialize the renderer element bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, DateTimeEdit uiElement, object filterValue)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
DateTimeEdit | uiElement | Specifies the corresponding renderer element. |
System.Object | filterValue | Specifies the filter value of the row. |
Overrides
OnUnwireEditUIElement(DateTimeEdit)
UnWire the wired events.
Declaration
protected override void OnUnwireEditUIElement(DateTimeEdit uiElement)
Parameters
Type | Name | Description |
---|---|---|
DateTimeEdit | 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.
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. |
Overrides
Remarks
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.