A simple example that renders the RelativeDateItem with everything default:
The RelativeDateItem renders with the chooser icon. Click on the icon to open the chooser. Now:
SmartClient Version: SNAPSHOT_v13.1d_2023-07-26/LGPL Development Only (built 2023-07-26)
This used to work in the past, but I don't know which was the 1st version where it stopped.
Code:
import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.RelativeDateItem; public class DatePickerWoes extends Canvas { DatePickerWoes() { RelativeDateItem relativeDate = new RelativeDateItem(); DynamicForm form = new DynamicForm(); form.setItems(relativeDate); addChild(form); draw(); } }
- The <<, <, >, >> arrows don't work;
- The month name can be clicked to open the months table, but no month can be selected;
- Everything else functions just fine;
- If these items are inspected in browser's dev tools, it can be seen they have the *Disabled class, as-in "dateChooserNavButtonDisabled".
SmartClient Version: SNAPSHOT_v13.1d_2023-07-26/LGPL Development Only (built 2023-07-26)
This used to work in the past, but I don't know which was the 1st version where it stopped.