PDA

View Full Version : Another DateTimeField component



jcarbou
12 Mar 2009, 9:30 AM
I develop a new DateTimeField component. This component extend DateField and add new triggers to edit hours, minutes and seconds with menu. It's support min/max values. It can be used in editor gridPanel.

You can choose between 2 versions (Ext 2.2.X and ext 3.X).

24/06/2009 : New dateTimeField3.zip uploaded : It's the DateTimeField for Ext 3.0 only.
20/03/2009 : New dateTimeField.zip uploaded to fix bug "cannot select "00" in hour, mins, secs".
29/04/2009 : New dateTimeField.zip uploaded

to fix bugs : "it don't work in editor grid panel" and "rendering problem"
samples updated with "editor grid panel samples"
new triggers images

jsakalos
13 Mar 2009, 4:52 PM
Nice job! I believe that in some situations this is better than mine.

jcarbou
16 Mar 2009, 12:58 AM
Thanks ! I use your component to edit date and time for a precision of 15 or 30 minutes (just 2 click). For better precision I use this new component...

peteryjk
17 Mar 2009, 11:02 PM
it's nice..
some problem :
1. cannot select "00" in hour, mins, secs.
2. it don't work in editor grid panel. (cannot select hours, mins, secs)

jcarbou
20 Mar 2009, 3:07 AM
This new file fix the first bug...

benny00
20 Mar 2009, 3:52 AM
good job :)

just one note:
It would be much better, if you would always update the first post
so we wouldn't have to scroll through the forum, to find the latest
update.

jcarbou
20 Mar 2009, 4:45 AM
It's better ! I updated (and I will update) the first post with the latest sources and samples (zip file).

jcarbou
29 Apr 2009, 4:42 AM
I upload a new version with "editor grid panel" support and new samples

peteryjk
15 May 2009, 10:00 AM
I upload a new version with "editor grid panel" support and new samples

thanks..waiting for this feature..:D

jbraband
15 May 2009, 10:50 AM
any plans to move this to 3.0? Ext.menu.Adapter no longer exists in 3.0 and causing an error on load.

-j

jcarbou
2 Jun 2009, 6:43 AM
I will try to make a new version for Ext 3.0...

jcarbou
24 Jun 2009, 11:45 PM
I post a other zip file. It's a new version for Ext 3.0 only.

xhq6632
17 Aug 2009, 8:12 PM
thanks

jbraband
13 Apr 2010, 8:17 AM
i had to tweak the onResize method to get this component to work with release 3.2.0



onResize : function(w, h){
Ext.form.TriggerField.superclass.onResize.call(this, w, h);
var tw = this.trigger.getWidth() || (17 * (this.timeFields.length+1));
if (Ext.isNumber(w)) {
this.el.setWidth(w - tw);
}
this.wrap.setWidth(this.el.getWidth() + tw);
},


the code in the 3.x version makes a call to this.adjustWidth which no longer exists in the 3.2.0 source. I looked at El.prototype.onResize to model my changes in the "3.2.0 way". I have had no problems after making this change.

helloaccp
13 May 2012, 11:58 PM
Looks very good.I try to go.

coolias
21 Aug 2012, 7:53 PM
I have some problem on chrome, I use extjs 3.4(the newest), the minutes and seconds control doesnt adjust rightly, look the pic38136