How to hide / Show days in week_unit , unit and week views

Hi ,

I want to know how i can show / hide days dynamically on scheduler while working in WEEK_UNIT , WEEK and UNIT views.

I have checked these

1- https://docs.dhtmlx.com/scheduler/custom_scales.html
this is working with only month view

2- i have tried dhtmlx samples/02_customization/07_custom_view.html

I found this code.

> scheduler.attachEvent("onTemplatesReady",function(){
>    //work week
>    scheduler.date.workweek_start = scheduler.date.week_start;
>    scheduler.templates.workweek_date = scheduler.templates.week_date;
>    scheduler.templates.workweek_scale_date = scheduler.templates.week_scale_date;
>    scheduler.date.add_workweek=function(date,inc){ return scheduler.date.add(date,inc*7,"day"); }
>    scheduler.date.get_workweek_end=function(date){ return scheduler.date.add(date,5,"day"); }
>    
>    
>    
>    //decade
>    scheduler.date.decade_start = function(date){
>       var ndate = new Date(date.valueOf());
>       ndate.setDate(Math.floor(date.getDate()/10)*10+1);
>       return this.date_part(ndate);
>    }
>    scheduler.templates.decade_date = scheduler.templates.week_date;
>    scheduler.templates.decade_scale_date = scheduler.templates.week_scale_date;
>    scheduler.date.add_decade=function(date,inc){ return scheduler.date.add(date,inc*10,"day"); }
> });
> 
> scheduler.init('scheduler_here',new Date(2018,0,10),"workweek");

But this is only working in workweek view…

Can anyone tell. ?
Thanks & Regards

Hi,

Regarding the week view, please read this article in the documentation
https://docs.dhtmlx.com/scheduler/custom_views.html

As for the WEEK_UNIT and UNIT view - could you clarify how it should work? These views display only one day by default.