How to show and hide tooltip for different mode

I want to show the mouseover tooltip (using ) in Month mode but hide it in Day and Week mode. How do I do that? I am using the following function. It doesn’t work well.

scheduler.attachEvent(“onBeforeViewChange”, function (old_mode, old_date, mode , date){
if(mode==‘month’ || mode==‘week’) {
scheduler.templates.tooltip_text = function(start,end,ev){
var mytooltip = “my tooltip”;
return mytooltip ;
} else {
scheduler.templates.tooltip_text = function(start,end,ev){
return ‘’; //I want to hide tooltip but this still shows a small blank square.
return true;

You can define tooltip once, like next

[code]scheduler.templates.tooltip_text = function(start,end,ev){
if (scheduler.getState().mode != “month”)
return “”;

 return "tooltip text";


Tooltip can be canceled with onBeforeTooltip event. If event handler returns false, tooltip won’t show upscheduler.attachEvent("onBeforeTooltip",function(){ var mode = scheduler.getState().mode; if(mode=='month' || mode=='week') return false;//hide in month and week return true; })

Thank you for your help. But unfortunately they don’t work.

Aliaksandr’s code with “onBeforeTooltip” event does not work. There is no such event. I’m using scheduler v3.0. Do you have the code? Can you post it?

Stanislav’s code does not solve the problem. For non “month” mode it still shows the tooltip with a small blank box. I want it show nothing.

Any idea?

Problem solved when I switch to v3.7. It appears to be a bug in older version. Now the
return “”;
line will no longer display the blank tooltip box.