Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DateChooser marking holidays and other special days

$
0
0
Hi,

I'am using SmartGWT 4.1-p20140410 on Firefox 26.0. I am trying to mark some "special days" on date picker (holidays, etc.). My code looks like this:

Code:

public class DateItem extends com.smartgwt.client.widgets.form.fields.DateItem {

        private DateChooser chooser = new DateChooser();

        public DateItem(String name, String title) {
                super(name, title);
                onInit();
        }

        private void onInit() {
Date[] dates = new Date[]{new Date(2014, 06, 26)};
chooser.setDisabledDates(dates);
chooser.setDisabledWeekdayStyle("holidays");
chooser.setDisabledWeekendStyle("holidays");
        }
}

I am trying to set disabled dates and add them new css style

Code:

.holidays {
        color: red;
}

but it takes no effect. Any ideas how to mark "special days" on date chooser?

Viewing all articles
Browse latest Browse all 4756

Trending Articles