Scheduler Header Misalignment and view

Hi there, 


I currently am trying to view a week timeline with interval set to 2,

I have a cell template that changes the width to 200px, when the time line is empty the header rows are misaligned, they are fine if there is some data in there, can you please help.




Also I was wondering is there any way to display a only 2 weeks in the Month view as I am looking for a view where I can show 2 weeks only and that wraps upon each week.


Thanks very much in advance for your help on this. :)



1 Reply

RV Ravikumar Venkatesan Syncfusion Team February 15, 2021 12:56 PM UTC

Hi Vincent, 

Greetings from Syncfusion support. 


I have a cell template that changes the width to 200px, when the timeline is empty the header rows are misaligned 

We have validated your above query at our end and based on your query we suspect that you need to increase the width of the Schedule cells and achieved it with the help of the below CSS style. 

[app.component.css] 
.e-schedule .e-timeline-view .e-content-wrap table col { 
  width: 200px; 
} 


I was wondering is there any way to display only 2 weeks in the Month view 

We have validated your above query at our end and we suspect that your requirement is timeline month view with the two weeks interval. But, we regret to let you know this requirement is not possible with the current Schedule architecture for the same we have logged feature feedback at our end, and this feature is implemented in any of our upcoming releases. Meantime we suggest you set the timeScale property of the Schedule to false with the interval of 2 with the timeline week view as shown below. 


[app.component.html] 
    <ejs-schedule #scheduleObj width="100%"  [timeScale]="timeScale" selectedDate]="selectedDate" [group]="group" [eventSettings]="eventSettings"> 
      <e-views> 
        <e-view option="TimelineWeek" [interval]="2"></e-view> 
      </e-views> 
    </ejs-schedule> 

[app.component.ts] 
export class AppComponent { 
  public timeScale: TimeScaleModel = { enable: false  }; 
} 


For all your queries we have prepared a sample that can be available from the below link. 


Kindly try the above sample and get back to us if you need any further assistance. 


Regards, 
Ravikumar Venkatesan 


Loader.
Up arrow icon