Date cell editor - set null [message #1806414] |
Wed, 08 May 2019 12:19  |
Eclipse User |
|
|
|
Hello,
i have a nattable with a column having date cell editor. the column is not mandatory so it should support empty value.
if i set null to the cell data by default, the date picker does not set the next selected date value. if i set current date to the variable in data object for the cell, then the date picker works fine, but in this scenario, i cannot clear the selected date.
can anyone help me with how can i have empty values in date cell in nattable.
|
|
|
Re: Date cell editor - set null [message #1806435 is a reply to message #1806414] |
Thu, 09 May 2019 01:11  |
Eclipse User |
|
|
|
the javadoc of the DateCellEditor has the following note:
* Note: This is an example implementation for a Date editor. As the SWT
* DateTime control has some serious issues like it is not nullable, has issues
* on setting the focus programmatically and it is not possible to open the
* dropdown programmatically, we suggest to rather use some Nebula widget or a
* custom widget for date editing.
It is quite a while that I worked on that area, but IIRC SWT DateTime and null does not work. I therefore created the CDateTimeCellEditor in the Nebula Extension that can deal with this. So I suppose you need to use the CDateTimeCellEditor to support that use case.
|
|
|
Powered by
FUDForum. Page generated in 0.02180 seconds