do not show events of previous month in current month

scheduler shows previous month events in current month. i dont want to show previous and next month events on current month

how can i hide all those events ?

Hi,
you can attach a filter to the month view
docs.dhtmlx.com/scheduler/filtering.html
docs.dhtmlx.com/scheduler/api__s … state.html
Code might look like following:[code]scheduler.filter_month = function(id, event){
var date = scheduler.getState().date;
var min = scheduler.date.month_start(new Date(date)).valueOf();
var max = scheduler.date.add(min, 1, ‘month’).valueOf();

return (event.start_date.valueOf() < max && event.end_date.valueOf() > min);

}[/code]