The SfDatePicker is loaded as UIElement of the GridDateTimeColumn in edit mode. By default, old value is replaced when you try to commit the blank value on editing and when the SfDatePicker.AllowInlineEditing property is enabled. You can overcome this by deriving a new class from the GridCellDateTimeRenderer and overriding the OnEditElementLoaded virtual method. In this method, you can get the corresponding editor, SfDatePicker of the GridDateTimeColumn and you can explicitly set the SfDatePicker.Value as null in SfTextBoxExt.TextChanged event.
C#
Refer to the following code example to remove the default GridCellDateTimeRenderer and add the customized GridCellDateTimeRendererExt to the SfDataGrid.CellRenderer collection. C# Sample Links: WinRT: http://www.syncfusion.com/downloads/support/directtrac/141421/ze/WinRT2074283480 WP: http://www.syncfusion.com/downloads/support/directtrac/141421/ze/WindowsPhone-1688298690 |
This page will automatically be redirected to the sign-in page in 10 seconds.