Hi Guys,
I have been trying to implement the dhtmlxScheduler as a form_block on the lightbox rather than the default time form_block that was built into it. I have managed to get it implemented by using the following form block (my form_block is not complete as of yet though…). I am using the method described in the 01_calendar_attach_to_input.html sample for the dhtmlxCalendar. The issue I am having is that the dhtmlxCalendar is appearing below the lightbox and above the dhtmlxScheduler, so I cannot use the dhtmlxCalendar because it is below the lightbox. Below is my form_block for the dhtmlxCalendar:
scheduler.form_blocks["myFromDateToDate"] =
{
render:function(sns){
return "<table style=\"width: 100%\" id=\"" + sns.ctrlId + "\"><td class=\"smallText\" style=\"width: 100%; text-align: left;\">From Date: <input type=\"text\" id=\"calInput1\" style=\"width: 200px; font-size:12px;\" readonly=\"true\" /></td></tr><tr><td style=\"text-align: right;\"><input type=\"text\" id=\"calInput2\" style=\"width: 200px; font-size:12px;\" readonly=\"true\" /></td></tr></table>";
//return "<div></div>";
},
set_value:function(node,value,ev){
if(cal1 == undefined)
{
cal1 = new dhtmlxCalendarObject('calInput1');
}
if(cal2 == undefined)
{
cal2 = new dhtmlxCalendarObject('calInput2');
}
},
get_value:function(node,ev){
},
focus:function(A){
}
};
It still has a fair bit of work, such as closing the Calendar object if the user has exitted the lightbox using any method (saving its value on close into the user input as well).
Any advice too resolve this issue would be greatly appreciated. If a sample form_block is available that uses the dhtmlxCalendar rather than the time form_block, it would also be greatly appreciated.
Kind regards
Greg Goldberg