1. #121
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    886
    Vote Rating
    8
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by descheret View Post
    I know how to use minDate and Max date and it works (only the allowed range is clickable) but is it also possible to lock the month and year select buttons to the allowes months only? so that it isn't possible to select or scroll into the "forbidden area"? It's not possible to click them anyway and thats good. But why should the user see the days and months? (in my case it's a range from 1st july till 31th dec 08)
    Good suggestion! I'll implement this into the upcoming minor upgrade
    Quote Originally Posted by descheret View Post
    this question is about the EventDates, I know how to use them and it works. But also - is there a way to remove the link from this special days. so that's possible to see them (different style) but not to click them?
    i also will add this as an optional config item within the next minor version. Thanks for the suggestion.

  2. #122
    Ext User
    Join Date
    May 2008
    Posts
    30
    Vote Rating
    0
    descheret is on a distinguished road

      0  

    Thumbs up


    thanks that sounds good for me. Is there a chance for me - in-between - to find a hardcoded solution? I looked to the scripts already but can't find the right lines. I think it's part of the original Ext JS code, isn't it? At the moment I'm not 100% fit and start with this framework with the first projects. So maybe you have an idea where I can have a look for help my self a bit.

    also do you know when there is the next verion of the DatePickerPlus?

    Thanks a lot
    ronald

  3. #123
    Ext User
    Join Date
    May 2008
    Posts
    30
    Vote Rating
    0
    descheret is on a distinguished road

      0  

    Lightbulb not selecetable EventDates

    not selecetable EventDates


    Hello,

    I've managed my issue with the deactivating the EventDates, just in case anyone needs it too:

    first define the config variable
    Code:
    /**
         * @cfg {Boolean} eventDatesSelectable
         * Whether the Event should be selectable or not
         */
        eventDatesSelectable : true,
    add the "eventDatesSelectable: true" to the rest of config vars where you define your DatePickerPlus

    add new event disabled css classes (similar to disable class but different background color)

    Code:
    .x-date-inner .x-datepickerplus-eventdates-disabled a:hover {
        background: #EB5F01;
        color: #fff;
        ... /* more css code */
    }
    
    .x-date-inner .x-datepickerplus-eventdates-disabled a {
        background: #EB5F01;
        color: #ffffff;
        cursor:default;
        ... /* more css code */
    }
    change this part and add the if/else to the ext.ux.datepickerplus.js

    Code:
    //mark dates with specific css (still selectable) (higher priority than weekends)
                    if (cal.eventDatesNumbered[0].length>0) {
                        foundday = cal.eventDatesNumbered[0].indexOf(t);
                        if (foundday!=-1) {
                            if(cal.eventDatesNumbered[1][foundday]!==""){                        
                                if(cal.eventDatesSelectable) {
                                    var eventClass = cal.eventDatesNumbered[2][foundday];
                                } else {
                                    var eventClass = cal.eventDatesNumbered[2][foundday] + '-disabled';
                                }
                                eCell.addClass(eventClass);
                                tiptext = (cal.eventDatesNumbered[1][foundday]!=="" ? cal.eventDatesNumbered[1][foundday] : false);
                            }
                        }
                    }
    and finaly add the following to ext.ux.datepickerplus.js to the date click handler

    Code:
    if(t.dateValue && !Ext.fly(t.parentNode).hasClass("x-date-disabled") && !Ext.fly(t.parentNode).hasClass("x-datepickerplus-eventdates-disabled") ){
    maybe there are better solutions - but it works

    no I have to look to the next issue: allow only selecting and scrolling trough the allowed months and disable the prev/next month/year buttons for months before minDate and also for months later than maxDate.

  4. #124
    Ext User
    Join Date
    Sep 2007
    Posts
    59
    Vote Rating
    0
    chemist458 is on a distinguished road

      0  

    Default Select weeks only

    Select weeks only


    Dear wm003,
    Great extension, just wondering...
    Is there anyway of forcing users to select weeks only, so if u clicked on a row in the datepicker, it would select the whole week, and not the day you clicked on only?
    Thanks in advance,

    George
    Last edited by chemist458; 13 Jul 2008 at 9:16 PM. Reason: you got to spell peoples name right!

  5. #125
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    886
    Vote Rating
    8
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by chemist458 View Post
    Dear wm003,
    Great extension, just wondering...
    Is there anyway of forcing users to select weeks only, so if u clicked on a row in the datepicker, it would select the whole week, and not the day you clicked on only?
    Thanks in advance,

    George
    mmh, not on the roadmap. That's why i implemented the "click on the weeknumber to select weeks"-feature. To achive this you currently need to use the "afterdateclick" event to manually create the weekselection out of the selected day.
    The more easier way to "force" users to select weeks only would be to disable the single date selection at all. I will implement an option for this in the upcoming release.

  6. #126
    Ext User
    Join Date
    Sep 2007
    Posts
    59
    Vote Rating
    0
    chemist458 is on a distinguished road

      0  

    Default


    Thanks for the answer,
    I am using it to select weeks to show weekly stats in a main window containing a grid, so its best that way for me.
    I thought that could be your answer, so I'm having a go right now at it, I'll post back with what I get to work, if thats helpful.
    Thanks again
    George

  7. #127
    Ext User
    Join Date
    Jul 2008
    Posts
    7
    Vote Rating
    0
    sasho is on a distinguished road

      0  

    Default year and month listeners question

    year and month listeners question


    Hi:
    Your extension is exactly what I need for a project. Thanks for your work!!

    I am running into some troubles when using the following listeners:
    PHP Code:
    "beforeyearchange"
    "afteryearchange"
    "beforemonthchange"
    "aftermonthchange" 
    Basically, the event is executed. However, the event get fired again and again, rather than just once.

    For example: when I define the following listener:

    PHP Code:
    listeners:{'afteryearchange':function(){ alert('changed year'); }} 
    I would get a popup over and over again, and the year changes more than once too.
    I tried with Firefox on Windows and linux, as well as IE6, and I get the same behavior with all of those.


    Thanks in advance for your help My goal is to update/change the allowedDates array with the result from an Ajax call, when a month or a year gets changed.

  8. #128
    Ext User
    Join Date
    Sep 2007
    Posts
    59
    Vote Rating
    0
    chemist458 is on a distinguished road

      0  

    Default Forcing the user to select only weeks

    Forcing the user to select only weeks


    Dear wm003,
    I thought I would post this as it maybe helpful, I have added to the afterdateclick event as you advised.
    It works, see what you think.
    PHP Code:
    listeners: {
                
    afterdateclick: function(dpdate){
                    var 
    startdate = new Date(dp.lastSelectedDate);//use this to check whats been clicked
                    
    var firstday = new Date(date).getFirstDateOfWeek(dp.startDay);//get the first day of week date
                    
    var lsdCell dp.lastSelectedDateCell.split("#");//needed for the daycell value
                    
    var tmpMonthCell parseInt(lsdCell[0],10);
                    var 
    tmpDayCell parseInt(lsdCell[1],10);
                    if(
    tmpDayCell 7){//set the start cell to select
                        
    var 0;
                    }else if(
    tmpDayCell && tmpDayCell 14){
                        var 
    7;
                    }else if(
    tmpDayCell 13 && tmpDayCell 21){
                        var 
    14;
                    }else if(
    tmpDayCell 20 && tmpDayCell 28){
                        var 
    21;
                    }else{
                        var 
    28;
                    }
                    for (var 
    07i++) {//loop through and select them all
                        
    var nextday firstday.clearTime().add(Date.DAYi);
                        if(
    nextday.getElapsed(startdate) !== 0){//check for sameday value
                            
    dp.markDateAsSelected(nextday,true,0,s+i,true);
                            }
                    }
                }
            } 
    Thanks for the pointer before

    George

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

      0  

    Default


    Quote Originally Posted by sasho View Post
    Hi:
    However, the event get fired again and again, rather than just once.
    That might be the issue because of the KeyListener and/or clickrepeater.
    As you need to click away the alert-box, try something similar by using the firefox console instead of an alert box. I guess, it won't get fired that often anymore then.

    PHP Code:
    listeners:{
        
    'afteryearchange':function(){
            
    console.log('changed year');//that basically only works in Firefox
        
    }


  10. #130
    Ext User
    Join Date
    Jul 2008
    Posts
    7
    Vote Rating
    0
    sasho is on a distinguished road

      0  

    Default


    Quote Originally Posted by wm003 View Post
    As you need to click away the alert-box, try something similar by using the firefox console instead of an alert box. I guess, it won't get fired that often anymore then.

    PHP Code:
    listeners:{
        
    'afteryearchange':function(){
            
    console.log('changed year');//that basically only works in Firefox
        
    }

    Will do, thanks for the tip

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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar