1. #21
    Sencha User kryo's Avatar
    Join Date
    Jan 2010
    Location
    Costa Rica
    Posts
    34
    Vote Rating
    0
    kryo is on a distinguished road

      0  

    Default


    Thanks for the info, I'm going to look into it out a little bit later.

    In this case ($this = this), it seems a little bit of jquery philosophy snuck-in. Since jQuery is no-where close to ExtJs as far as scoping is concerned, so I tend to emulate scoping by defining '$this' as the current 'this', so when i'm in a different scope, I can recall $this later. Some people do "var self = this;" but I like the '$' prefix, what can i say! :-)
    --
    Hans Doller
    hans@w3forge.org
    Senior Web Developer & Consultant

    Contributed Plugins: Ext.date.RangeField, Ext.money.Exchange, Ext.locale.Format, Ext.ux.Bootstrap

  2. #22
    Ext User
    Join Date
    Jun 2007
    Location
    Reading, UK
    Posts
    22
    Vote Rating
    0
    RyanG is on a distinguished road

      0  

    Default


    Hi there,

    Great extension - am using it nicely here
    It'd be great if you were able to allowBlank as sometimes you might not want a date to be entered in the field.
    I'm going to have a quick look and see if its simple to implement myself and if so will post here afterwards.

    Thanks,

    Ryan

  3. #23
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    justin.lucas is on a distinguished road

      0  

    Default


    nice work! viewing the demo, this is exactly what i need. i am going to download it and give it a whirl! thx!

  4. #24
    Ext User Carlos Bolina's Avatar
    Join Date
    May 2009
    Posts
    2
    Vote Rating
    0
    Carlos Bolina is on a distinguished road

      0  

    Default


    In Ext 3.3.0 the use of the class is affecting the DateField component.
    DateField acquired the strange behavior.
    there must be some incompatibility...

  5. #25
    Sencha User kryo's Avatar
    Join Date
    Jan 2010
    Location
    Costa Rica
    Posts
    34
    Vote Rating
    0
    kryo is on a distinguished road

      0  

    Default


    This might be due to the DateJS bundle. There was a method conflict between the two libraries which required an ugly hack, it's probably come back to haunt me. In either case, I'm working on an improved version of this library which I will share as soon as it's ready.
    --
    Hans Doller
    hans@w3forge.org
    Senior Web Developer & Consultant

    Contributed Plugins: Ext.date.RangeField, Ext.money.Exchange, Ext.locale.Format, Ext.ux.Bootstrap

  6. #26
    Sencha User
    Join Date
    Sep 2009
    Posts
    112
    Vote Rating
    0
    asagala is on a distinguished road

      0  

    Default


    Great job. You should probably isolate the strings so we can translate them

    Code:
    	fromdatetitle:'From Date',
    	todatetitle:'To Date',
    Code:
    p1 = instanciateDatePickerPanel({ role:'start', title:this.fromdatetitle },{maxDate: dateToday});
    p2 = instanciateDatePickerPanel({ role:'end', title:this.todatetitle },{maxDate: dateToday});
    P.S For this to work you need to add the this scope on the iterate statement

    Code:
    Ext.iterate(this.presets,function(key,value){
    ......
    ,this}):
    Last edited by asagala; 26 Jan 2011 at 2:11 PM. Reason: notes

  7. #27
    Sencha User kryo's Avatar
    Join Date
    Jan 2010
    Location
    Costa Rica
    Posts
    34
    Vote Rating
    0
    kryo is on a distinguished road

      0  

    Default


    Thank you all for your comments/suggestions. I have just released a totally new version of this plugin, which can be found here:
    http://www.sencha.com/forum/showthre...ate.RangeField

    Enjoy!

    P.S. Edit post feature is broken... didn't let me fix my spelling error! :-)
    --
    Hans Doller
    hans@w3forge.org
    Senior Web Developer & Consultant

    Contributed Plugins: Ext.date.RangeField, Ext.money.Exchange, Ext.locale.Format, Ext.ux.Bootstrap

  8. #28
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    305
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    great extension indeed.. thanks u so much for sharing this with us Kryo..
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  9. #29
    Sencha User kryo's Avatar
    Join Date
    Jan 2010
    Location
    Costa Rica
    Posts
    34
    Vote Rating
    0
    kryo is on a distinguished road

      0  

    Default


    Glad you liked it talha06. I'm not sure if you've seen the new rewrite of this plugin, but if you haven't already, please check out http://www.sencha.com/forum/showthre...ate.RangeField
    --
    Hans Doller
    hans@w3forge.org
    Senior Web Developer & Consultant

    Contributed Plugins: Ext.date.RangeField, Ext.money.Exchange, Ext.locale.Format, Ext.ux.Bootstrap

  10. #30
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    redbe01 is on a distinguished road

      0  

    Default


    Is it possible to embed this in ext gwt? If yes, how to do it?