Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gonzalo on Jul 15, 2009 10:59
open dhtmlx forum
Scheduler Lightbox customization

Hi.
I know that in the next version (currently beta) itīs possible to customize the lightbox form using custom fields. This is great but I would like to know if there is a "safe" way of taking control of the button which calls the lightbox in order to call kind of a prompt (another web page where I will insert events in the database through a complex form). After closing that prompt, I will then refresh the scheduler with this code:

function reload(){
scheduler.clearAll();
scheduler.load(<url>);
}

Thanks in advance for your help,
Gonzalo.



Answer posted by Support on Jul 16, 2009 06:21
You can override showLightbox method of scheduler - this is the key point , which is used to open "details" form

scheduler.showLightbox = function(id){
             // id - id of event
             ... open custom form and fill it with details, based on provided id ...
}
Answer posted by Gonzalo on Jul 16, 2009 05:50
Thanks!