You are here:   Home Support FAQ

Calendar Frequently asked Questions

FAQ

How to increase Slot Height

There are 2 things to do. 

1. During your instantiation provide dwSlotHeight to the desired height in pixels

2. Change CSS to reflect the same. 

15 minute Events can't be read properly

There are 2 solutions to this issue. 

1. Increase the slot height. See FAQ for how to increase slot height?
2. Hide headers for 15 minute events. Here is how you can do it. Web2Cal is smart enough to add a "15min" class to events of 15 min length. So in your css add the following line

.15min .header{display:none;}

Thus calendar will show only the name of the event and no time for such an event. 

How to add more than one event to web2Cal

Web2Cal.addEvent supports one event or a list of events. If you provide, list of events, Calendar will NOT re-render for every event, but renders once after all events are added to calendar

Can web2cal handle large set of data without hurting performance

Yes, Web2Cal is built to work in real production environments with a large set of events. The following is a screenshot of a production deployed application. 

 


How do I get the current view that is rendered

The View name is provided as a param to your loadEvents method.

w2c = new Web2Cal("myContainer", {loadEvents: myLoadEventsMethod})

function myLoadEventsMethod(start, end, viewName)
{
var Group = {events:[]
color:{css:"MyCustomCssClass", name: "Something"}
};
w2c.render(w2c);
}

Can I provide my Own Colors and define Custom CSS

Yes, You can provide a color object to Web2Cal for a group.

w2c = new Web2Cal("myContainer", {loadEvents: myLoadEventsMethod})

function myLoadEventsMethod(start, end, viewName)
{
var Group = {events:[]
color:{css:"MyCustomCssClass", name: "Something"}
};
w2c.render(w2c);
}

Can I mark one Group as Read Only

Yes, you can. Web2Cal now accepts a readOnly flag at the Group Level.

Do I need to know JQuery to use web2cal?

NO,  Jquery is only internally used by web2cal. 

You can use plain javascript calls or use any library you are comfortable with like (mootools, prototype, scriptaculous, dojo)