Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Jul 2009
    Vote Rating

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


    Have scoured the API 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:

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


  2. #2
    Ext User christian130's Avatar
    Join Date
    Jul 2010
    Vote Rating


    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
    Austin, Texas
    Vote Rating


    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts