rec_type and event_length not handed over to custom lightbox


I try to reprogram the recurring events part of the standard lightbox because I need it for my custom lightbox.

When starting my custom lightbox I therefore need to retrieve the values of rec_type and event_length to set the controls in my custom lightbox correctly.

Anyway when I do:

scheduler.showLightbox = function(id){
var ev = scheduler.getEvent(id);

Ok, somehow this was submitted before I finished:

Anyway when I do this:

scheduler.showLightbox = function(id){
var ev = scheduler.getEvent(id);

And click to open the lightbox of a recurring event I get this output:

({start_date:(new Date(1415929500000)), end_date:(new Date(1415936900000)), rec_type:null, rec_pattern:null, event_pid:“6”, event_length:null, text:“new entry”, id:“6#1415929500”, _timed:true, _sday:4, _inner:false, _sorder:1, _count:2})

As you can see rec_type is null as is event_length. So the ev data object does not contain rec_type information. Why is this and how can I get this information?


Best Regards,

This is not the original recurring event but just an instance
Look at event’s id


  • 6 - id or original event
  • 1415929500 - timestamp of event occurrence

You can use scheduler.getEvent(6).rec_type to get the rec_type as well as any other property of master event.


just wanted to say thank you, this helped.

Best Regards,