Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tatiana on Sep 04, 2009 03:20
open dhtmlx forum
dhtmlxScheduler: double click adding an event

1) Please tell, how can I disable adding new event on the double click?
2) Is it possible to hide the buttons "Save" and "Delete" at the bottom of the lightbox?

Thank you
Answer posted by Support on Sep 04, 2009 06:27
>>1) Please tell, how can I disable adding new event on the double click?
scheduler.config.dblclick_create = false;

>>2) Is it possible to hide the buttons "Save" and "Delete"
You can use
<script>
scheduler.locale.labels.icon_delete="";
</script>
<style>
.dhx_delete_btn{
display:none;
}
</style>
Answer posted by Jerry T. on Oct 07, 2009 05:58
I've tried hiding the buttons, commenting out lines of code in the dhtmlxscheduler.js file and I still end up with about 1-2px wide blank button where the Save and Delete icons would be (I'm trying to display the lightbox in a read-only mode - no Save, no Delete, and no textarea editing capabilities.  I want to use it to display task details in a kind of reporting fashion and the read-only setting in the scheduler config only serves to disable displaying the lightbox for details which does me no good.
Answer posted by Stanislav (support) on Oct 07, 2009 10:00
You can just ignore default lightbox, you can attach any custom code for event details showing through

scheduler.showLightbox=function(id){
    any custom code here, to show details of event
}