Timeline with whole week

Hello,

How can I display timeline view but for the whole week ?

3 Replies 1 reply marked as answer

KA Karthikraja Arumugam Syncfusion Team August 18, 2020 01:46 PM UTC

Hi Dominik, 
Greetings from Syncfusion. 
We would like to inform you that you can achieve your requirement of “Displaying a week in TimelineView” using DaysCount property in TimelineViewSettings. DaysCount property is used to mention the number of days in single view of Timeline. In addition, you can use DisplayDate property of Scheduler to start the week from Sunday. 
Code Snippet: 
[C#]         
// Number of days in TimelineView 
 schedule.TimelineViewSettings.DaysCount = 7; 
 
 // To start the week from Sunday 
 schedule.DisplayDate = DateTime.Now.Date.AddDays(-(int)DateTime.Now.DayOfWeek); 
 
We have prepared a sample for the same, 
Sample link: SchedulerTimelineView 
 
We hope this helps. Kindly revert us if you have any concern. 
 
Regards, 
Karthik Raja A 


Marked as answer

DB Dominik Bojdo August 18, 2020 05:25 PM UTC

Hi,

That`s exactly what I needed. Thank you.


KA Karthikraja Arumugam Syncfusion Team August 19, 2020 01:02 PM UTC

Hi Dominik, 
 
We are glad that the given solution helped you to achieve your requirement. Please get in touch with us we are always happy to help you out. 
 
Regards, 
Karthik Raja A 


Loader.
Up arrow icon