How to put the date picker in a grid cell?

Just use DateCell class for grid initialization. See sample in the question What is the Editable Grid?

[top]


How to localize week days?

The date picker uses the standard GWT i18n mechanism. See referwnce GWT documentation for details. Everything you need is just to create a new properties file named org/gwt/advanced/client/ui/resources/CalendarConstants_XX.properties, where XX means ISO encoding name.

[top]


How to change a start day of week?

Create properties file as it has been explained in the previous answer. Find the firstDayOfWeek property and change the value. 0 means Sunday, 1 - Monday, etc.

[top]


How to switch on / off time entering?

The next sample shows how it can be done.

DatePicker picker = new DatePicker(new Date());
// swicth off time entering
picker.setTimeVisible(false);

[top]