Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Date cell editor - set null(for date column i want to set null date , but date picker does not show up if we do not set any date value)
Date cell editor - set null [message #1806414] Wed, 08 May 2019 16:19 Go to next message
Shreya Suman is currently offline Shreya SumanFriend
Messages: 13
Registered: March 2017
Junior Member
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 05:11 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
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.
Previous Topic:Duplicate elements created on sorting a tree implemented using Nattable
Next Topic:Ad a overlay such as a "glaspane" over the whole table
Goto Forum:
  


Current Time: Fri Apr 19 19:30:40 GMT 2024

Powered by FUDForum. Page generated in 0.02504 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top