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

      0  

    Default New Version 1.2 released

    New Version 1.2 released


    New Version 1.2 released

    As always grab the latest download packages from the first post of this thread (remember to download with firefox).

    Enjoy

    Changelog:
    - support "allowOtherMenus" Config for DateFieldPlus
    - datefieldplus can be hidden by clicking the triggerbutton again in cases hiding by clicking outside isn't possible
    - added config "styleDisabledDates" to be able to set custom style dates (eventdates/weekends..) on disabled dates also (suggested by descheret)
    - added config "eventDatesSelectable" to disble event-dates selection if desired (even if the dates are not disabled at all) (thanks to descheret)
    - added config "disableSingleDateSelection" to force user to use week- or monthselection only (suggested by chemist458)
    - added config "stayInAllowedRange" when setting minDate/maxDate, this will prevent to change months outside the allowed daterange (suggested by descheret)
    - added config "summarizeHeader" to add an optional global header when using multimonth display containing the month range (e.g. january 2008-october 2008)
    - added italian locale (thanks to andreabat)
    - FIX: setMinDate/MaxDate/DateLimits did not update the viewport properly (reported by sasho)

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

      0  

    Default New Version 1.3 released

    New Version 1.3 released


    New Version 1.3 supports ExtJS 2.2

    (1.2 and below are not fully compatible to Ext 2.2)

    updated first post and demopage as always

  3. #143
    Sencha Premium Member
    Join Date
    Oct 2007
    Posts
    51
    Vote Rating
    0
    stumpy_uk is on a distinguished road

      0  

    Default


    Firstly thanks for an Awesome UX, it really is very impressive.

    I have a question and I feel the answer is obvious but I have had many goes and looked at the code and cannot find a way to plug in a JSON Store into the application. I can add items as an array but would like to store them in a DB and manage them in there if it is possible.

    Cheers

    Stumpy

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

      0  

    Default


    This will need a DateConverter for the JSON String, as simply Ext.decode won't create valid DateObjects out of a JSON encoded Date.

    I will support JSON Encoded Dates (e.g. 2008-08-05T12:22:00) for eventDates or disabledDates in the upcoming version. It already was on the roadmap
    And this way you will be able to use an Ext.data.JSONStore for the mentioned datearrays in the future.

  5. #145
    Ext User
    Join Date
    Sep 2007
    Posts
    21
    Vote Rating
    0
    gtomalesky is on a distinguished road

      0  

    Question DatePicker title

    DatePicker title


    First of all this is a great extension to the ExtJS product. For me it would be even better if I could get the calendar titles to show with the nice blue background. I am using 2.0 because switching to 2.2 breaks some things I don't have time to chase down. I did copy ext-base.js from 2.2 to get rid of that annoying "Ext.isArray is not a function" message, however. I attempted to use ext-all.css from that same distro but that did not make the calendars pretty. Any thoughts on this???

  6. #146
    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 gtomalesky View Post
    For me it would be even better if I could get the calendar titles to show with the nice blue background.
    This should do (customize it for your needs)

    Code:
    .x-date-middle,.x-date-left,.x-date-right {
        background: url(../path/to/your/pickerheaderbackground.gif) repeat-x 0 0 !important;
        color:#FFF !important;/* change the textcolor aswell*/
    }
    to use the same lightblue as the daynames try this

    Code:
    .x-date-middle,.x-date-left,.x-date-right {
        background: #dfecfb url(../images/default/shared/glass-bg.gif) repeat-x left top !important;
        color:#233d6d !important;
    }

  7. #147
    Ext User
    Join Date
    Sep 2007
    Posts
    21
    Vote Rating
    0
    gtomalesky is on a distinguished road

      0  

    Question


    Thanks wm003! I have also tried to use the defaultEventDatesCls to put a black background on event dates but it does not seem to work. What am I doing wrong?

  8. #148
    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 gtomalesky View Post
    Thanks wm003! I have also tried to use the defaultEventDatesCls to put a black background on event dates but it does not seem to work. What am I doing wrong?
    could you please provide the js code of your DatepickerPlus config and the Css Class definition?
    maybe its an "!important" option needed on css or some typo in the classname? i cannot see any bug (yet) without some example code

  9. #149
    Ext User
    Join Date
    Sep 2007
    Posts
    21
    Vote Rating
    0
    gtomalesky is on a distinguished road

      0  

    Default


    Thanks for your quick reply. Here are the code snippets:

    Here is the code for an editor in an EditorGridPanel:
    Code:
                editor:	new Ext.ux.form.DateFieldPlus({
    				allowBlank:false,
    				readOnly:true,
    				showWeekNumber: false,
    				disableMonthPicker:false,
    				summarizeHeader:true,
    				noOfMonth : 3,
    				noOfMonthPerRow : 3,
    				renderPrevNextYearButtons:true,
    				showActiveDate:true,
    				format:'M-d-Y',
    				disabledLetter: "-",
    				minDate: new Date(2008, 0, 1),
    				//maxDate: new Date(2008, 4, 26),			
    				width:120,
    				eventDatesSelectable: false,
    				styleDisabledDates:'blocked-dates',
    				defaultEventDatesCls:'blocked-dates',
    				eventDates : function(year) {
    					var dates = [
    					{
    						date: new Date(year,5,26), //will be marked every year on June 26
    						text: "June 26th, Greg's Birthday (Age:"+(year-1951)+")"
    					}
    							
    					];
    					return dates;
    				}
            	})
    and the CSS class: (shamelessly lifted from datepickerplus.css)
    Code:
    <style>
    <!--
    .blocked-dates a
    {
    	background-color:#000000;
    	border:1px solid #000088;
    	padding:1px 4px;	
    }
    -->
    </style>

  10. #150
    Ext User
    Join Date
    Sep 2007
    Posts
    21
    Vote Rating
    0
    gtomalesky is on a distinguished road

      0  

    Default centering calendars in row

    centering calendars in row


    I need to be able to place a calendar for the current month in between the previous month and the next month. I have been able to do this by subtracting one month off the current month and setting that as the "value". The problem is the incoming day( from a TriggerField) is not highlighted. Is there another way to set the start month in a row of months? Thanks in advance for you help and for a great extension.

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