PDA

View Full Version : week number and week selection in datepicker



ffu
1 Aug 2013, 5:50 PM
Hello,

We need a week selector for our application.

Week numbers should be shown in the selector
integrated with datepicker, so week numbers are updated when change month and year
a whole can be selected and highlight
Could please anyone help? or suggest any plug-in, or even third-party calendar which meets the requirements?

Many thanks,

Frank

Gary Schlosberg
5 Aug 2013, 9:34 AM
The framework doesn't support this out of the box, but if you implement one yourself, getWeekOfYear() (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.Date-method-getWeekOfYear) could be useful:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.Date-method-getWeekOfYear

As far as third-party implementations, this (http://www.lubber.de/extjs/datepickerplus/) site seems to have week numbers working:
http://www.lubber.de/extjs/datepickerplus/

ffu
5 Aug 2013, 3:21 PM
Hi Gary,

Thank you for your replay.

I looked at the datepickerplus. It was designed for Ext JS 3 and has not been updated since 2011. It should work with Ext JS 4. I will give it a try.

Thanks.

Frank

trenty
10 Sep 2013, 3:27 AM
Hi,

we are also interested in a ExtJS 4.X week picker.
Datepickerplus just works until ExtJS 3 (at the moment) as Frank said.

Anyone got a solution?

Thanks
Trent