CalendarPanel: Is it possible to set the different color for the Non-working days and Non-working time?

  1. #1

    CalendarPanel: Is it possible to set the different color for the Non-working days and Non-working time?

    Hi,

    1) In Calendarpanel, is it possible to set the different color for the Non-working days and Non-working time as the attachment ?
    Click image for larger version. 

Name:	P8.jpg 
Views:	200 
Size:	84.8 KB 
ID:	2638

    2) And is it possible to set 24-hour format in the left column?

    Thanks.
  2. #2
    Hi,

    Quote Originally Posted by csssi_coolite View Post
    1) In Calendarpanel, is it possible to set the different color for the Non-working days and Non-working time as the attachment ?
    I guess, unfortunately, there is no simple solution. But I will consider it with other team's members.

    2) And is it possible to set 24-hour format in the left column?
    Please add the following thing into the <head> of the page or change it within the sources. See 'changed' comment.
    Example
    <ext:ResourcePlaceHolder runat="server" />
    <script type="text/javascript">
        Ext.calendar.DayBodyTemplate.override({
            applyTemplate : function (o) {
                this.today = new Date().clearTime();
                this.dayCount = this.dayCount || 1;
                
                var i = 0, days = [],
                    dt = o.viewStart.clone(),
                    times;
                    
                for(; i<this.dayCount; i++){
                    days[i] = dt.add(Date.DAY, i);
                }
    
                times = [];
                dt = new Date().clearTime();
                for(i=0; i<24; i++){
                    times.push(dt.format('G')); // changed - the previous value is 'ga'
                     dt = dt.add(Date.HOUR, 1);
                }
                
                return Ext.calendar.DayBodyTemplate.superclass.applyTemplate.call(this, {
                    days: days,
                    dayCount: days.length,
                    times: times
                });
            }
        });
    </script>
  3. #3
    Hi,

    Thanks, it's OK now.
    And we are looking forward to your teams to add the new feature.
  4. #4
    Unfortunately, this behavior is not currently included to the Calendar, and it would be difficult to implement.

    The best thing we can do at this moment - add a Feature Request ticket to review in the future.

    The Feature Request has been added.
    https://extnet.lighthouseapp.com/pro...res/tickets/89

    Unfortunately, we can't say you with sure that this feature would be implemented, and can't provide you with any time-line.

Similar Threads

  1. [CLOSED] CalendarPanel: background color of time slots
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 18, 2012, 4:40 PM
  2. Application stops working after some time
    By mercede75 in forum 1.x Help
    Replies: 0
    Last Post: May 18, 2012, 6:47 AM
  3. Replies: 2
    Last Post: Mar 28, 2012, 1:39 PM
  4. [CLOSED] CalendarPanel : bold in the datepicker the days containing events
    By ddslogistics in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 04, 2011, 3:21 PM
  5. Replies: 4
    Last Post: Nov 14, 2008, 12:08 PM

Posting Permissions