Custom LightBox

Hi Sir,

Am so happy with your service with Scheduler. It works amazing. I need one small help.

I have the scheduler which displays names. If I double click it gives lightbox with name, start date & end date. I want to display some more information and I click on the click like city, state, phone no like that.

Can anyone help me, I will be great help.

Thanks in advance.

Hi @sowmyark

Thank you for the positive feedback.

You should add new sections controls into the default lightbox definition scheduler.config.lightbox.sections to show more information. All existing controls are listed here in the documentation.

An example with a select control:

Also there is a possibilities to create Custom Lightbox Control or even Fully Custom Lightbox.

Thank you sir,

But how do I give table column name to that.

Hi Sir,

Is there any way I can add the php page link to the scheduler.

Instead of lightbox, Is I can get the php page with id as reference.

Please help me sir.

please clarify what do you mean. Do you want to redirect user to another page for editing?
If so, it can be done with the code like following

scheduler.attachEvent("onBeforeLightbox", function (id){ window.location.href = 'edit.php?event=' + id; });

Hi Sir,

I did as you suggested, but it is not working.

Here is the code attached.

<!doctype html>

Outsource ACE
<script src="codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">

<script src=""></script> 
<script src="codebase/ext/dhtmlxscheduler_pdf.js" type="text/javascript" charset="utf-8"></script>
<script src="codebase/ext/dhtmlxscheduler_multisource.js"></script>
<script src="codebase/ext/dhtmlxscheduler_mvc.js"></script>
<script src="codebase/ext/dhtmlxscheduler_multisection.js"></script>
<style type="text/css" media="screen">
	html, body{
	.dhx_cal_event.past_event div{
	background-color:purple !important; 
	color:white !important;
/*multi-day event in month view*/
	background-color:purple !important; 
	color:white !important;
/*event with fixed time, in month view*/
	color:purple !important;

<script type="text/javascript" charset="utf-8">

	function init() {
		scheduler.config.xml_date="%Y-%m-%d %H:%i";
			scheduler.locale.labels.timeline_tab = "Timeline";
		scheduler.config.time_step = 30;
		scheduler.config.multi_day = true;

if (start < (new Date())) //if date in past
return “past_event”; //then set special css class for it

return “Text: “+event.text+”

return (event.important?"":"")+scheduler.templates.hour_scale(start);

var text = event.text.substr(0,20);
return “”+text+"";

scheduler.attachEvent(“onBeforeLightbox”, function (id){
window.location.href = ‘data_update.php?event=’ + id;

	scheduler.init('scheduler_here',new Date(),"month");
	var dp = new dataProcessor("data/connector.php");
		scheduler.attachEvent("onBeforeLightbox", function (id){
window.location.href = 'data_update.php?event=' + id;


	<div class="dhx_cal_header">
	<div class="dhx_cal_data">

Please help me out.

Thank you sir , Its working :slight_smile:

Hi Sir,

I want to display company name in the scheduler and I want to display in map the address

How to I do .

Please help me.
Thanks in advance
Sowmya RK