Customizing calender

Hello,

I’ve got a few questions about the calender:

  1. I got the weeknumbers in Scheduler.Config.default_date and it works fine in the day view. But in the week view, its displayed twice:
    week: 25, 17 Jun 2013 – week: 25, 23 Jun 2013
    Is there a better way to do this so I have the weeknumber in the day and week views?

  2. I’ve enabled the map view. But I can’t find a way to set the address for the event. How can I do this?

  3. I want users to change the language by selection the language in a drop down menu. Is this possible to add to the calender?

  4. I want to be able to select a color when creating an event. Is this possible?

  5. Is there an option to get an alert or reminder for events?

Regards,

Bas

Hi,
1)except of date format configs, views also have set of templates that defines what exactly will be displayed.
Week view’s header template returns “week start - week end” string.
You can override template on the client-side
scheduler-net.com/docs/templatet … sweek_date
It can be done on server as well, but client-side provides more flexible approach

  1. You can add a control to lightbox which will allow entering address
    scheduler-net.com/docs/mapview.html
    scheduler-net.com/docs/lightbox.html

  2. Yes, check the “Skins and languages” example of Scheduler.MVC3 project from the package

  3. Yes, you can add a selectbox with available colors to the lightbox, or assign color some other way

  4. Currently there is no such functionality. However simple reminder can be implemented in js code relative easy, just iterate events with some interval and show alert when it’s needed

Hello,

Thanks for your reply.
I’ve got the week view template working now but when I try to add the week number with %W its not working. This is what I have:

                scheduler.templates.week_date = function (date1, date2) {
                    return scheduler.templates.day_date(date1) + " – " + scheduler.templates.day_date(scheduler.date.add(date2, -1, "day")) + "Week: " + %W;
                }

Do you have a solution?

I tried to use the map view but it’s not working. I added the required fields but it doesn’t go to the coordinates I inserted. What am I doing wrong?

Regards

For week formatting, change code as

var week_format = scheduler.date.date_to_str("%W");
scheduler.templates.week_date = function (date1, date2) {
     return scheduler.templates.day_date(date1) + " – " + scheduler.templates.day_date(scheduler.date.add(date2, -1, "day")) + "Week: " + week_format(date1);
}