showEvent highlights the event, is there a way to remove the highlight when the user clicks somewhere else on the scheduler?
Hi,
there is no special method, but ‘showEvent’ updates the color and textColor properties of the event. You can detect which event has been highlighted and the next time a user clicks on empty space - you reset color properties of that event
[code](function(){
var display_event = 0;
scheduler.attachEvent("onBeforeEventDisplay", function(ev){
display_event = ev.id;
return true;
});
scheduler.attachEvent("onEmptyClick", function(){
if(display_event){
var ev = scheduler.getEvent(display_event);
delete ev.color;
delete ev.textColor;
scheduler.updateEvent(display_event);
display_event = 0;
}
return true;
});
})();[/code]