Define start- and end-date for ScheduleType Timeline

I am new to the SfSchedule and the usage raises a couple of questions.
As far as I understand with ScheduleType set to timeline, I can provide a custom timeinterval, but the timeline itself only is able to show this for one day.

* How can I configure the Timeline to show a whole year/month/week?
* How can I set a current startdate / enddate (the timerange) shown in the scheduler?
* How can I mark several cells and create an entry (so the start- and enddate are automatically set) instead of just selecting one cell to set the start? After I created an element, I can use the context-menu to resize the entry. I want to do so before creating the item (mousedown creates it, keep mouse moving until size/timeslot is reached, mouseup to finish creation)



3 Replies

GC Ganeshamoorthy Chandramoorthy Syncfusion Team July 19, 2018 05:14 PM UTC

Hi Felix Pfaff, 
 
We have checked with your queries. 
 
Query 
Response 
How can I configure the Timeline to show a whole year/month/week? 
 
Currently, schedule doesn’t support timeline view for week /month /year. We have considered to provide time line view support for week and month and logged feature report for the same. 
 
We will implement this feature in any of our upcoming volume release. 
 
Regarding timeline view for year, could you please share more details about your requirement in timeline view along with a reference screenshot? So that, it will be helpful for us to provide you better solution. 
 
How can I set a current startdate / enddate (the timerange) shown in the scheduler? 
 
Based on your query, we suspect that your requirement is to set date range (start date and end date) for timeline week/month view. Could you please more details about your requirement? So that, it will be helpful for us to provide you better solution. 
 
How can I mark several cells and create an entry (so the start- and enddate are automatically set) instead of just selecting one cell to set the start? After I created an element, I can use the context-menu to resize the entry. I want to do so before creating the item. 
 
Currently, schedule doesn’t provide support to add appointment by selecting multiple cells instead of setting the duration in dialog while adding an appointment through context menu. We have already considered and logged feature report on this. 
 
We will implement this feature in any of our upcoming volume release. 
 
 
 
Regards, 
Ganeshamoorthy C 



JE Jean-Noël January 21, 2020 07:32 AM UTC

Hi,

Any updates on this feature (timeline view for week /month)?

I think I have the same needs than Felix had.

I need to display some events on customizable period of time (like a month, a week, the past 10 days,..). The events can be grouped, like with the actual ScheduleResourceTypeCollection. Because of this, I can't use the schedule control in another mode than Timeline and the purpuse of this is to have an easy way to monitor the appointments (past and futur), without the needs of scrolling (actual ScheduleDateRange).

In conclusion, for my application, setting arbitrary start/end dates would be the greatest, but I really need, at least, the capability to display full months/weeks.

Regards,

Jean-Noël



KA Karthikraja Arumugam Syncfusion Team January 22, 2020 09:07 AM UTC

Hi Jean, 
 
Thank you for contacting Syncfusion control. 
 
We have checked your requirement of “Showing more than one day in Schedule TimelineView”. The requested feature has not implemented yet, but you can achieve your requirement using ScheduleDateRange, TimeInterval and IntervaHeight properties of Schedule. If you set 3 days as ScheduleDateRange timeline view will show for 3 days, in TimeInterval property set interval in minutes. Since you need to show timeline without scrolling, use IntervalHeight property. Set value for IntervalHeight in SizeChanged event of schedule. 
 
For instance, if you set five dates in ScheduleDateRange and TimeInterval as 360 (minutes), timeline will show 4 time slots for each day. So 20 timeslots in a single Timeline view, for which calculate height for each time slot by dividing available width by the number of time slots. 
 
Please refer the following code example for the same, 
 
[Xaml]   
 <schedule:SfSchedule x:Name="schedule" TimeInterval="Custom" CustomTimeInterval="720" ScheduleType="TimeLine"/> 
 
[C#] 
schedule.SizeChanged += Schedule_SizeChanged; 
   
private void Schedule_SizeChanged(object sender, SizeChangedEventArgs e) 
{ 
           // Here TimeInterval is 720 so 2 time slots for each day and 5 days added in ScheduleDateRange. Hence 10 time slots in a view. 
            schedule.IntervalHeight = e.NewSize.Width / 10; 
} 
 
We have prepared a sample based on your requirement, 
Sample link: ScheduleUWP 
 
You can also refer our UG documentation for more information about TimeInterval, 
 
We hope this helps. Kindly revert us if you need any further assistance. 
 
Regards, 
Karthik Raja A 


Loader.
Up arrow icon