Hi,
I would like to remove EDIT button in Pencil bar ( As event text is disabled or not in lightbox section). I want user to click on detail in order to modify.
Also I am using combobox in Lightbox so user can select. Whenever Event is saved, onEventSave only displays key { key :1, label: "xxx@gmail.com"}. i would like it to show label?
Also when initialzing(scheduler.parse(events,“json”)), i would like combo-box to show my selection. How to achieve it?
events = [{ “start_date”:“2012-2-4 6:00”, “end_date”:“2012-3-5 8:00”, “text”: text, “primary”:"xxx@gmail.com", “backup”:"yyy@gmail.com"},
{ “start_date”:“2012-2-6 6:00”, “end_date”:“2012-3-7 8:00”, “text”: text, “primary”:"www@gmail.com", “backup”:"zzz@gmail.com"} ]
scheduler.config.lightbox.sections=[
{ name:“primary”, options: usersArray, map_to:“primary”, type:“combo”, image_path: “…/…/…/dhtmlxcombo/codebase/imgs/”, filtering: true },
{ name:“backup”, options: usersArray, map_to:“backup”, type:“combo”, image_path: “…/…/…/dhtmlxcombo/codebase/imgs/”, filtering: true },
{ name:“time”, height:72, type:“time”, map_to:“auto”}
];
scheduler.attachEvent(“onEventSave”,function(id,data,is_new_event){
alert(data.primary) <--------------displays Key and not label
});