Items longer the 1 day

I started using this control but with SQL Sever database.
I inserted appointment record which start 16 October and finish next day 17 October.

After that I see on control only in 16th. When I double click it and save then I see label on 16th and 17th but they are ... two separate appointments.

Is this intentional effect ?

It is the way to do automatically for all items ?





2 Replies

AA Arulraj A Syncfusion Team October 17, 2018 03:32 PM UTC

Hi Krzysztof, 

Thanks for using Syncfusion products. 

We are able to see the reported issue “Appointments are not shown on all the days”. We have confirmed as an issue and log a bug report for the same. The fix for the issue will be available in the 2018 Volume 3 SP1 which is planned to release in the end of October 2018. 

Arulraj A 



MG Mohanraj Gunasekaran Syncfusion Team December 12, 2018 09:27 AM UTC

Hi Krzysztof 
 
By default, ScheduleDataProvider does not have the support to generate the appointment based on the appointment StartTime and EndTime. But, you could achieve your reported scenario by implementing the custom SheduleDataProvider and override the GetSchedule method to generate the appointment based on the StartTime and EndTime. Please refer the following code example and the sample.  
 
Code example  
public class SimpleScheduleDataProvider : ScheduleDataProvider  
 
      public override IScheduleAppointmentList GetSchedule(DateTime startDate, DateTime endDate)  
      {  
              ScheduleAppointmentList list = new ScheduleAppointmentList();  
                DateTime start = startDate.Date;  
                DateTime end = endDate.Date;  
                foreach(ScheduleAppointment item in this.MasterList)  
                {  
  
              if (item.StartTime.Date < item.EndTime.Date)  
              {  
                  int count = item.EndTime.Date.Day - item.StartTime.Date.Day;  
                  for (int i = 0; i < count+1; i++)  
                  {  
                      IScheduleAppointment appointment = item.Clone() as IScheduleAppointment;  
                      appointment.StartTime = item.StartTime.AddDays(i);  
                      appointment.EndTime = appointment.StartTime;  
                      list.Add(appointment);  
                  }  
              }  
       }  
       list.SortStartTime();  
      return list;  
  }  
 
 
 
  
Suggestion  
Also, you can use the ArrayListDataProvider as DataSource of ScheduleControl. If you use the ArrayListDataProvider there is no need to implement the above customization to generate the multi appointment. Please refer the following KB link,  
  
Let us know whether this helps also if you need any further assistance on this.  
  
Regards,  
Mohanraj G 


Loader.
Up arrow icon