How to count number of events per day

Hello All,

Actually we created multiple events for a day in calendar.

calendar_event : function(date){
return date+“

”;
},

we need to have events count in the above given function.
How to get the count of events for the day in calendar?

please find the attachment

Thanks in Advance
Ravi Varma


Hello Ravi,

You can use approach that I recommended in the previous reply (referred to viewtopic.php?f=24&t=26861&p=85281)

var events = $$("scheduler").getEvents(date,dhx.Date.add(date,1,"day")); for(var i = 0;i < events.length; i++){ ... }