[CLOSED] Calendar Panel in Dayview/WeekView how to show disabled dates/time slots in gray color ?

  1. #1

    [CLOSED] Calendar Panel in Dayview/WeekView how to show disabled dates/time slots in gray color ?

    Scenario is as follows
    1. We get list of Holidays, Leaves and absent employees from database
    2. Logic to prevent EvnetWindow is written as shown below
                  rangeSelect: function(cal, dates, callback) {
                  if (!CompanyX.isValidDate(dates.StartDate)) return;
      
                      this.record.show(cal, dates);
                      this.getWindow().on('hide', callback, cal, { single: true });
                  },
      
                  dayClick: function(cal, dt, allDay, el) {
                  if (!CompanyX.isValidDate(dt)) return;
                      
                      this.record.show.call(this, cal, {
                          StartDate: dt,
                          IsAllDay: allDay
                      }, el);
                  },
      CompanyX.isValidDate function checks if date is valid for entry.


    Now, How to display all invalid date related time slots in gray color?
    Last edited by Daniil; May 06, 2014 at 6:58 AM. Reason: [CLOSED]
  2. #2
    Ext.Net uses simple version of Calendar (simple version of http://ext.ensible.com/products/calendar/)
    Simple version doesn't give ability to use custom renderers for view cell

    I would start to investigate source of Calendar. For example, you can see that inside 'applyTemplate' method of BoxLayout.js file (http://svn.ext.net/premium/trunk/Ext...e/BoxLayout.js) there is functionality to add own css class to a cell

    So, you can override that function and own css class to special highlign of cell

Similar Threads

  1. ext:CalendarPanel DayView formating Time in portuguese
    By gefferson.librelato in forum 1.x Help
    Replies: 7
    Last Post: Jan 25, 2013, 12:04 PM
  2. [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
  3. Replies: 2
    Last Post: Mar 28, 2012, 1:39 PM
  4. Replies: 2
    Last Post: Jan 12, 2012, 11:30 AM
  5. [CLOSED] Calendar DayView
    By drgw74 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 11, 2012, 10:03 AM

Posting Permissions