PDA

View Full Version : Is EXT JS have a component called Date Range Picker?



hmnth1
10 Jul 2013, 4:08 AM
I am developing a web application and i have a requirement to show a date range picker in on click on text field with options such as

1. select today.
2. select from last week
3. select last month
4. select last 6 months
5. custom range

If i select first four respective date range should be displayed and if i select fifth option it should show calender to select a date range.

slemmon
11 Jul 2013, 9:28 PM
The only date specific widgets are datefields and datepicker. Beyond that you can extend a container to contain them and create your own app logic, but those are the two date widgets available out of the box.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Date
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.picker.Date

hmnth1
12 Jul 2013, 1:59 AM
Thanks for the reply.It is available in jquery.Any way i will try to achieve it using ext js

jumpow
14 Jul 2013, 11:41 PM
There are lot of posts like this:
http://workblog.neteos.eu/180/javascript/extjs/extjs-datefield-select-date-range

Look on answer to this post...
This solution does not work! (It works only if Date is not selected. If you try to use it more times, you got stack overflow)

hlurger
19 Dec 2014, 8:24 AM
If you are still interested in a date range picker..... I wrote one: http://www.sencha.com/forum/showthread.php?296275-Ext.ux.daterange