Hi,
I would like to configure the pop-up date picker that is attached to the DateItem widget to have the following characteristics:
1) Show only weekdays (i.e. no weekends)
2) Set minimum and maximum selectable dates
3) Disable certain dates within the min/max range to account for bad days (e.g. market holidays)
Currently I am achieving 1) using the following:
and 2) by:
Is there currently a way to accomplish 3) ?
Thanks for your help.
I would like to configure the pop-up date picker that is attached to the DateItem widget to have the following characteristics:
1) Show only weekdays (i.e. no weekends)
2) Set minimum and maximum selectable dates
3) Disable certain dates within the min/max range to account for bad days (e.g. market holidays)
Currently I am achieving 1) using the following:
Code:
DateChooser dcProp = new DateChooser(); dcProp.setDisableWeekends(true); dcProp.setShowWeekends(false); DateChooser.setDefaultProperties(dcProp);
Code:
DateItem valuationDate = new DateItem("valuationDate", "Date"); valuationDate.setStartDate(startDate); valuationDate.setEndDate(endDate);
Thanks for your help.
Comment