1. #221
    Ext User
    Join Date
    Oct 2007
    Posts
    6
    Vote Rating
    0
    hattia is on a distinguished road

      0  

    Default


    Great extension :-)

    thanks wm003,

    i have one question how to simulate shift clic, what i want is to click on one start date and clic then on end date to select the range (like shift behavior, the differnce just is not to deselect the previous selection) , i explore now the function "handleDateClick" ... if you have idea it will be geat, thanks for advance (sorry of my english if it have same mistakes :-)

  2. #222
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by hattia View Post
    ...
    (like shift behavior, the differnce just is not to deselect the previous selection)...
    that's a bit difficult, basically there is a need not to call "this.removeAllPreselectedClasses()".

    I'll give it a try for the (still delayed, sorry...) upcoming version.

  3. #223
    Ext User
    Join Date
    Oct 2007
    Posts
    6
    Vote Rating
    0
    hattia is on a distinguished road

      0  

    Default


    yes i have comment the call of removeAll...() to not deslect previous selected Dates .... there are also the idea to drag to achieve the purpose of range select rather than the use of shift key ... i think it is interssant..

    So, Thanks still waiting for upcoming version.
    last question, in the nationalHolidays function, can we imagine the case to pass not single date per object but range date (start date and end date) this is the case of school holidays for example

  4. #224
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by hattia View Post
    last question, in the nationalHolidays function, can we imagine the case to pass not single date per object but range date (start date and end date) this is the case of school holidays for example
    Good suggestion! It's on my Todo List

  5. #225
    Ext User
    Join Date
    Oct 2007
    Posts
    6
    Vote Rating
    0
    hattia is on a distinguished road

      0  

    Default


    Quote Originally Posted by wm003 View Post
    Good suggestion! It's on my Todo List
    you have a long Todo List

    i have to manage combo witch contain a list of holidays, it will refresh the calendar switch of the selected option (show holidays A, show Holidays B, not show holidays ) i make it like this

    Code:
    refreshCalendar : function(holidays){		
    		this.frHolidaysZoneA = holidays;
    		this.update(this.activeDate);
    		
    	},
    whats you think, and many thanks

  6. #226
    Sencha User
    Join Date
    Jun 2007
    Posts
    43
    Vote Rating
    0
    stevebla is on a distinguished road

      0  

    Default Problems with datepickerplus

    Problems with datepickerplus


    I cant get datepickerplus to work .. no doubt due to some stupid javascript mistake of mine.
    .. (DatePickerPlus looks like a very good widget btw .. exactly fills the bill for my requirement .. congrats to the developer)

    I keep getting the following from firebug
    "b is undefined".

    If I comment out the items block where it refers to the datepickerplus xtype it displays the bare window as expected.

    Using ExtJS 2.2
    Any help would be much appreciated.
    Thanks

    Here is the code:

    PHP Code:
    [CODE]<html>
    <
    head>
    <
    link rel="stylesheet" type="text/css" href="ext-all.css" />
    <
    link rel="stylesheet" type="text/css" href="datepickerplus.css">
     

    </
    head>
    <
    body>
    <
    script type="text/javascript" src="ext-base.js"></script>     
    <script type="text/javascript" src="ext-all.js"></script>     
    <script type="text/javascript" src="ext-lang-en.js"></script>     
    <script type="text/javascript" src="ext.ux.datepickerplus-min.js"></script>     
    <script type="text/javascript" src="ext.ux.datepickerplus-lang-en.js"></script>
    <script type="text/javascript">
    var jslang = "EN";
    Ext.QuickTips.init();
    Ext.reg('datepickerplus', Ext.ux.DatePickerPlus);  

    task_clone_win = new Ext.Window({
                modal: false,
                title:'Task Cloning for date :',
                id:'task_clone_window',
                height:300,
                width: 500,
                minWidth: 300,
                minHeight: 200,
                draggable: true,
                layout: 'fit',
                plain:true,
                x:75,
                y:95,
                        border: false,
                        bodyBorder: false,
                autoDestroy: true,
                closable: true,
                autoScroll: true,
                bodyStyle:'padding:5px;',
                layout: 'column',    // Specifies that the items will now be arranged in columns
                items: 
                [   {
                                             xtype: 'datepickerplus',
                    id: 'dp',
                    showWeekNumber: false,
                    markNationalHolidays: false,
                    noOfMonth : 1, 
                    multiSelection: true,
                    showActiveDate:true,
                    
                    listeners: {
                        select: function(date){
                            alert(date.getValue());
                           }
                    }

                    }] 
                
           });

        task_clone_win.show();

    </script>

    </body>
    </html>[/CODE] 
    Last edited by mystix; 9 Apr 2009 at 8:36 AM. Reason: merged with main thread. please post in the correct thread in future

  7. #227
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Why do you register datepickerplus again as a xtype? It does it by itself already. Maybe Ext.reg gets a bit confused?...

    anyway, have you tried not to use xtype but "new Ext.ux.DatePickerPlus" ?
    Are you using the current version 1.3 of DatePickerPlus?

  8. #228
    Ext User apimio's Avatar
    Join Date
    Sep 2008
    Posts
    13
    Vote Rating
    0
    apimio is on a distinguished road

      0  

    Exclamation format problem ...

    format problem ...


    The first thing ..this is an amazing extension .. congratulations....

    Now ..my problem maybe is very simple to you ... I Have the follow definition of a Date :

    Code:
        
    var dtSemanaPlan = new Ext.ux.form.DateFieldPlus({
            id:'IDSEMANA',
             fieldLabel:'SEMANA', 
             format:'W-Y', // <<<<- this is the formato that want to show to the user
             width:200, 
             multiSelectByCTRL:false, 
             maxSelectionDays:1
    
    });
    As you see, is a very simple ..the problem is ..

    1) When the user select a date it is passed to the field correctly, but when de datefield loose the focus, a new date is assigned (the current date actually) .

    I'll very appreciate your help guys!

  9. #229
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by apimio View Post
    When the user select a date it is passed to the field correctly, but when de datefield loose the focus, a new date is assigned (the current date actually) .
    Sounds like some event is fired. Please check if you have any kind of eventlisteners later added to the DateField. Maybe studying the code on the Demopage helps.

  10. #230
    Ext User apimio's Avatar
    Join Date
    Sep 2008
    Posts
    13
    Vote Rating
    0
    apimio is on a distinguished road

      0  

    Default


    No, is not a event problem. I did create a event "change" but it is to save the Date Year and Week to another hidden field.

    Now, looking into the forum and some another threads I' found that maybe the problem is that DateField Component, change the date if the value assigned is not a "valid" date format ...p.e.: 'd-m-Y', 'd/m/Y', etc...

    is like validation or something.

    My solution (for now) y change the format property to : 'd-m-Y \\Wee\\k W'
    this way, the component accept the new date selected by the user and I can show the year week ...but, this is not a "nice to have" example isnt?

    Thank's a lot anyway!

Thread Participants: 111

  1. galdaka (1 Post)
  2. wehtam (5 Posts)
  3. nassaja-rus (1 Post)
  4. mystix (5 Posts)
  5. ludoo (1 Post)
  6. jsakalos (1 Post)
  7. laluigino (2 Posts)
  8. evant (1 Post)
  9. methodz (1 Post)
  10. stevebla (1 Post)
  11. netnoise (1 Post)
  12. KampfCaspar (1 Post)
  13. carstep (2 Posts)
  14. ZooKeeper (1 Post)
  15. nromanel (6 Posts)
  16. Spirit (1 Post)
  17. yuewah (4 Posts)
  18. chemist458 (3 Posts)
  19. jerrybrown5 (3 Posts)
  20. gtomalesky (5 Posts)
  21. jo2008 (1 Post)
  22. aacraig (7 Posts)
  23. stumpy_uk (2 Posts)
  24. hattia (3 Posts)
  25. lpfLoveExt (1 Post)
  26. thoreking (3 Posts)
  27. markusreimers (1 Post)
  28. sigaref (2 Posts)
  29. andreabat (1 Post)
  30. sanjshah (6 Posts)
  31. mask_hot (4 Posts)
  32. dorgan (1 Post)
  33. bornsilly (1 Post)
  34. Zord (3 Posts)
  35. aaronchiang (1 Post)
  36. skbach (5 Posts)
  37. joenilson (2 Posts)
  38. S1-Gezi (1 Post)
  39. pcsernyik (6 Posts)
  40. vizcano (1 Post)
  41. Richie1985 (2 Posts)
  42. radtad (6 Posts)
  43. tagsum (3 Posts)
  44. Nohcs777 (5 Posts)
  45. lavitsky (1 Post)
  46. Hunyi (1 Post)
  47. brenda (3 Posts)
  48. hp (2 Posts)
  49. Dave.Sanders (4 Posts)
  50. DVSDevise (3 Posts)
  51. moegal (3 Posts)
  52. EzBulka (1 Post)
  53. catapl3xis (2 Posts)
  54. rvrdesigns (2 Posts)
  55. rich02818 (5 Posts)
  56. armandoxxx (2 Posts)
  57. WhiteRussian (4 Posts)
  58. lacco (1 Post)
  59. Ronhead (3 Posts)
  60. Urkman (1 Post)
  61. descheret (3 Posts)
  62. dimitrij.zub (1 Post)
  63. hirenb (1 Post)
  64. sasho (7 Posts)
  65. CR_RedFox (1 Post)
  66. joshuabco (1 Post)
  67. apimio (4 Posts)
  68. sirtimbly (2 Posts)
  69. canxss (2 Posts)
  70. SimoAmi (2 Posts)
  71. wemerson.januario (1 Post)
  72. dubdub (3 Posts)
  73. Naokai (5 Posts)
  74. RuiDC (4 Posts)
  75. dkarlsso (1 Post)
  76. slisbin (1 Post)
  77. Chods (2 Posts)
  78. dkroells (3 Posts)
  79. alvaro1728 (1 Post)
  80. sneema (15 Posts)
  81. AdamLShepherd (2 Posts)
  82. bholyoak (2 Posts)
  83. dtex-lab (1 Post)
  84. EZboy (2 Posts)
  85. burbur (1 Post)
  86. strad84 (2 Posts)
  87. radubrehar (4 Posts)
  88. almotasim (2 Posts)
  89. itheart (1 Post)
  90. fmntf (4 Posts)
  91. Allbus (2 Posts)
  92. sprakash (2 Posts)
  93. sansie (3 Posts)
  94. siebe vos (6 Posts)
  95. gkarmadi (1 Post)
  96. fabads (16 Posts)
  97. kskrumpet (4 Posts)
  98. sivanesan (1 Post)
  99. marco81 (1 Post)
  100. Lobo (2 Posts)
  101. benoitrx (1 Post)
  102. JazzMan88 (3 Posts)
  103. Urzzza (1 Post)
  104. josefhaydn (2 Posts)
  105. eja40 (3 Posts)
  106. lukasw44 (1 Post)
  107. thchuong (1 Post)
  108. twhra (1 Post)
  109. ronei (1 Post)
  110. qdano (1 Post)
  111. quintenvk (1 Post)

Tags for this Thread