[CLOSED] ext:Calendar: Is possible increase number of calendars and change her color.

  1. #1

    [CLOSED] ext:Calendar: Is possible increase number of calendars and change her color.

    Hi!

    I wish increase the number of calendars and change her color... it's possible?

    Attachment 4007
    Last edited by Daniil; Mar 28, 2012 at 1:06 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I think it's possible.

    Please look at the example.
    http://examples2.ext.net/#/Calendar/Overview/Basic/

    There are the "Other" group
    <CalendarStore ID="CalendarStore1" runat="server">
        <Calendars>
            <ext:CalendarModel CalendarId="1" Title="Home" />
            <ext:CalendarModel CalendarId="2" Title="Work" />
            <ext:CalendarModel CalendarId="3" Title="School" />
            <ext:CalendarModel CalendarId="4" Title="Other" />
        </Calendars>
    </CalendarStore>
    and these CSS rules:
    <style type="text/css">
        .ext-color-4,
        .ext-ie .ext-color-4-ad,
        .ext-opera .ext-color-4-ad {
            color: #7F0000;
        }
        .ext-cal-day-col .ext-color-4,
        .ext-dd-drag-proxy .ext-color-4,
        .ext-color-4-ad,
        .ext-color-4-ad .ext-cal-evm,
        .ext-color-4 .ext-cal-picker-icon,
        .ext-color-4-x dl,
        .ext-color-4-x .ext-cal-evb {
            background: #7F0000;
        }
        .ext-color-4-x .ext-cal-evb,
        .ext-color-4-x dl {
            border-color: #7C3939;
        }
    </style>
    To override CSS styles of, for example, the second group you should replace "4" with "2".
  3. #3
    Works fine!

    Thanks a lot, Daniil

Similar Threads

  1. Replies: 5
    Last Post: Jul 12, 2016, 3:28 AM
  2. Replies: 1
    Last Post: Jun 07, 2012, 11:38 AM
  3. Replies: 6
    Last Post: Apr 18, 2012, 1:00 PM
  4. change color
    By oseqat in forum 1.x Help
    Replies: 10
    Last Post: Aug 29, 2011, 6:44 PM
  5. Replies: 12
    Last Post: Jun 17, 2009, 1:07 PM

Posting Permissions