Where to define the customize lightbox

Hi,

I want to customize my lightbox, but it looks like I have to do so before calling scheduler.init().

Is this true?

I need to customize my lightbox for populating a combo box after the scheduler has been initialize. Is this possible?

It is possible to add dynamically entries to the combo box using this code:

// Access the lightbox combo box
var combo = scheduler.formSection("holder").section.options;
var holders = <array with values to show in the combo>
for (var int = 0; int < holders.size(); int ++){
    combo.push({
        key: holders.get(int).getName(),
        label: holders.get(int).getName()
    });
}

Hi,
lightbox configuration can be update dinamically any time.
If you set a custom configuration before the lightbox has been called for the first time - changes will be applied when user opens the lightbox.
If the lightbox has been shown - you’ll need to call scheduler.resetLightbox() in order to drop old form and recreate it using new configs
docs.dhtmlx.com/scheduler/api__s … htbox.html

Options of the select can be changed dinamically using scheduler.serverList api, check this article
docs.dhtmlx.com/scheduler/api__s … rlist.html