Class GridCellDateTimeRenderer
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridCellDateTimeRenderer : GridVirtualizingCellRenderer<TextBlock, SfDatePicker>, IGridCellRenderer, IDisposableConstructors
GridCellDateTimeRenderer()
Initializes a new instance of the GridCellDateTimeRenderer class.
Declaration
public GridCellDateTimeRenderer()Methods
EndEdit(DataColumnBase, Object, Boolean)
Ends the edit occuring on the cell.
Declaration
public override bool EndEdit(DataColumnBase dc, object record, bool canResetBinding = false)Parameters
| Type | Name | Description | 
|---|---|---|
| DataColumnBase | dc | Specifies the DataColumnBase. | 
| System.Object | record | Specifies the record. | 
| System.Boolean | canResetBinding | Indicates whether binding can be reset or not. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the edit ends on the cell; otherwise false. | 
Overrides
GetControlValue()
Gets the control value of the cell.
Declaration
public override object GetControlValue()Returns
| Type | Description | 
|---|---|
| System.Object | The control value of the cell. | 
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Invoked when the edit element(SfDatePicker) 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(SfDatePicker) 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
OnInitializeDisplayElement(DataColumnBase, TextBlock, Object)
Method which initialize 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 corresponding DataColumnBase. | 
| Windows.UI.Xaml.Controls.TextBlock | uiElement | Specifies the corresponding renderer element. | 
| System.Object | dataContext | Specifies the data context of the cell. | 
Overrides
OnInitializeEditElement(DataColumnBase, SfDatePicker, Object)
Method which is used to initialize the renderer element bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, SfDatePicker uiElement, object dataContext)Parameters
| Type | Name | Description | 
|---|---|---|
| DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. | 
| SfDatePicker | uiElement | Specifies the corresponding renderer element. | 
| System.Object | dataContext | Specifies the data context of the cell. | 
Overrides
OnUnloadUIElements(DataColumnBase)
Invoked when the cell is scrolled out of view or unloaded from the view. GridVirtualizingCellRendererBase<D, E> class overrides this method to remove the cell renderer visuals from the parent or hide them to reuse it later in same element depending on whether AllowRecycle was set.
Declaration
protected override void OnUnloadUIElements(DataColumnBase dataColumn)Parameters
| Type | Name | Description | 
|---|---|---|
| DataColumnBase | dataColumn | Specifies the column to unload the cell UIElement. | 
Overrides
OnUnwireEditUIElement(SfDatePicker)
Declaration
protected override void OnUnwireEditUIElement(SfDatePicker uiElement)Parameters
| Type | Name | Description | 
|---|---|---|
| SfDatePicker | uiElement | 
Overrides
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 | The Windows.UI.Xaml.Input.KeyRoutedEventArgs instance containing the event data. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns true if the parent grid should be allowed to handle keys; otherwise false. |