-
27 Aug 2010 10:42 AM #1
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:
Can someone in the dev team please help? Or perhaps suggest a starting point?Code:var times = [], dt = new Date().clearTime(); for(i=0; i<24; i++){ times.push(dt.format('ga')); dt = dt.add(Date.HOUR, 1); }
Cheers!
-
29 Aug 2010 4:12 PM #2
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
-
8 Dec 2010 12:21 PM #3
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
-
Set the time the message Ext.example.msg
By dfsilva in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 18 Apr 2012, 1:29 AM -
[OPEN-1232] CalendarPanel bug when placed inside a Panel (Ext 3.3 beta)
By omermx in forum Ext 3.x: BugsReplies: 7Last Post: 23 Nov 2011, 5:00 AM -
Start And Use Ext GWT For 1st Time
By 3rB3r in forum Ext GWT: DiscussionReplies: 2Last Post: 19 May 2009, 10:59 PM -
How to set month start date month end date default in date field
By frank_ash in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 17 Oct 2008, 6:59 AM -
Start & End Dates
By crxtech in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 17 Dec 2007, 1:50 PM


Reply With Quote