Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by hari on Oct 09, 2009 01:44
open dhtmlx forum
how to use a scheduler

In the scheduler i like to customize the controls.How to do that? When i add scheduler.config.lightbox{

    sections:[    {name:"description", height:200, map_to:"text", type:"textarea" , focus:true},
                                    {name:"time", height:72, type:"time", map_to:"auto"},

{name:"meeting", height:72, type:"text", map_to:"text"}
                                    
                                ]


}


but this code throws an error
Answer posted by Stanislav (support) on Oct 09, 2009 07:11
The correct code is 


scheduler.config.lightbox.sections=[
   {name:"description", height:200, map_to:"text", type:"textarea" , focus:true}, 
   {name:"time", height:72, type:"time", map_to:"auto"}, 
   {name:"meeting", height:72, type:"textarea", map_to:"text"} 
]

a) the way of declaration is changed
b) the correct type value is "textarea" not "text"