Am looking at making some additional customization in terms of displaying additional information.
For example, I added a new field in the Lightbox called category. Under Category there are selections like Family, Friends, Work and so on.
First questions, is there a way I can display on maybe the header or footer or somewhere else on the page the total number of hours for Friends. So if I have 5 events with category : Friends of 2 hours each. It would display 10 hours.
Second question, I have a new field in the lighbox called duration. Currently it is a text field that I enter the amount of hours the event is. Is there a way I can make that field auto populate the duration based on the start and end date of the event?
You need either to defien a custom control that will calculate it’s value as diff between start and end date, or precalculate this value in onBeforeLigthbox event, e.g.
[code]scheduler.attachEvent(“onBeforeLightbox”, function (id){
var ev = scheduler.getEvent(id);
ev.duration = Math.floor( (ev.end_date - ev.start_date) / (10006060));