1. #1
    Sencha User
    Join Date
    Jul 2009
    Posts
    56
    Vote Rating
    0
    omermx is on a distinguished road

      0  

    Question How to set start/end TIME for Ext.calendar.CalendarPanel (Ext 3.3. beta)

    How to set start/end TIME for Ext.calendar.CalendarPanel (Ext 3.3. beta)


    Hi

    Have scoured the API http://dev.sencha.com/deploy/ext-3.3...mples/ux/docs/ and can't find a single config item/method that lets you control start and end times. Component assumes that the day always starts at 12am and goes through to 11pm but I need to customize this.

    Have tried using setStartDate() but that only seems to set bounds in terms of the date and not times. Kind of suprised this hasn't been added as a config parameter in the first place but there you go.

    I had started hacking DayBodyTemplate.js and mucked around with the code below which seems to allow you to set a range but the extra space for missing hours is still rendered and the link between the position in the grid and times rendered is all wrong so there must be more to the puzzle:

    Code:
    var times = [], dt = new Date().clearTime();
            for(i=0; i<24; i++){
                times.push(dt.format('ga'));
                dt = dt.add(Date.HOUR, 1);
            }
    Can someone in the dev team please help? Or perhaps suggest a starting point?

    Cheers!

  2. #2
    Ext User christian130's Avatar
    Join Date
    Jul 2010
    Posts
    36
    Vote Rating
    0
    christian130 is on a distinguished road

      0  

    Default


    the description of the method and everything else is inside the extjs framework code click into the source code and u'll see some example. Be patience because this is not like jquery and other easier frameworks. And yes further more u'll find some helpful answer

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    There is currently no setting for restricting the day/week views to a time range. I have that in my plans for Ext Calendar Pro, but I haven't looked into it yet to see what it would take to implement. Please note that the version in 3.3 is a sample only, and the intention was not to provide every possible feature and config option. I'll take a look shortly and if this is simple to implement I'll try to provide an override here.

    BTW, this request was brought up in the Extensible forums and I'm tracking it here.

Similar Threads

  1. Set the time the message Ext.example.msg
    By dfsilva in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 18 Apr 2012, 1:29 AM
  2. Replies: 7
    Last Post: 23 Nov 2011, 5:00 AM
  3. Start And Use Ext GWT For 1st Time
    By 3rB3r in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 19 May 2009, 10:59 PM
  4. How to set month start date month end date default in date field
    By frank_ash in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 17 Oct 2008, 6:59 AM
  5. Start & End Dates
    By crxtech in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 17 Dec 2007, 1:50 PM

Thread Participants: 2

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