Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gonzalo on Aug 14, 2009 08:10
open dhtmlx forum
Scheduler readonly and details form

Hi!
I have the following issue:

My scheduler uses a custom lightbox (i have overriden the showlightbox function) and it set as readonly. I would like to allow users to open that custom lightbox when double clicking an event to see further information, but as it is readonly, dblClick is not working. How can I allow to always call the lightbox although the scheduler is readonly? Is there a good solution for that?

Thanks in advance,
Gonzalo.
Answer posted by Support on Aug 14, 2009 08:20
Instead of readonly , you can use

    scheduler.config.drag_create = false;
    scheduler.config.drag_move = false;
    scheduler.config.drag_resize = false;
    scheduler.config.dblclick_create = false;

scheduler.attachEvent("onClick",function(){
    return false;
})

It will block ability to create new event from mouse action and block single-click toolbar, but user still  will have ability to see details form by dbl-clicking. 
( all above is assuming that you are using scheduler 2.0 )
Answer posted by Gonzalo on Aug 14, 2009 08:47
It worked!
Thanks!