How can I make event highlights visible while changing week and or month

I  did try SfSchedule component and added event while creating fragment but the highlighted color disappears while navigating week and months. I have implemented this way.
    private void CreateCalendarEvents()
            {
                ScheduleFields schedule = new ScheduleFields();
               var Meetings = new ScheduleAppointmentCollection();
                ScheduleAppointment meeting = new ScheduleAppointment();
                Calendar calendar = Calendar.Instance;
                Calendar startTimeCalendar = Calendar.Instance;
                foreach (var calendarEvent in remoteData)
                {
                    var DefaultHour = 9;                   
                    if (!string.IsNullOrEmpty(calendarEvent.start) && !string.IsNullOrEmpty(calendarEvent.end))
                    {
                        var startDate = GetDate(calendarEvent.start);
                        var startYear = startDate.Year;
                        var startMonth = startDate.Month;
                        var startDay = startDate.Day;

                        var startTime = GetDate(calendarEvent.start);
                       

                        var startHour = startTime.Hour == 0 ? DefaultHour : startTime.Hour;
                        var startMinute = startTime.Minute;

                        var endDate = GetDate(calendarEvent.end);
                        var endYear = endDate.Year;
                        var endMonth = endDate.Month;
                        var endDay = endDate.Day;

                        var endTime = GetDate(calendarEvent.end);
                        var endHour = endTime.Hour==0 ? DefaultHour : endTime.Hour;
                        var endMinute = endTime.Minute;

                       
                       // startTimeCalendar.Set(calendar.Get(CalendarField.Year), calendar.Get(CalendarField.Month), calendar.Get(CalendarField.Date), hour, 0);
                       

                        startTimeCalendar.Set(startYear, startMonth, startDay, startHour, startMinute, 0);
                        meeting.StartTime = startTimeCalendar;

                        Calendar endTimeCalendar = Calendar.Instance;
                        endTimeCalendar.Set(endYear, endMonth, endDay/*calendar.Get(CalendarField.Date)*/, endHour, endMinute, 0);
                        meeting.EndTime = endTimeCalendar;

                        meeting.Color = GetColor(calendarEvent.color);
                        meeting.Subject = calendarEvent.title ?? "";
                        meeting.IsAllDay = calendarEvent.allDay;
                        meeting.Notes = calendarEvent.title ?? "";
                        Meetings.Add(meeting);
                    }
                    
                }
                sfSchedule.Appointments = Meetings;
            }   

1 Reply

SG Swathi Gopal Syncfusion Team December 21, 2017 12:37 PM UTC

Hi Ishwor, 
  
Thank you for contacting Syncfusion Support. 
  
We have checked your query with the provided code information. According to schedule behaviour, selecting a cell with appointment, highlights that selected appointment and once the view is swiped and again swiped back to current view the appointment will not be highlighted. But if the default cell(without appointments) is selected and swiped back, the selection wil be there in that same cell. 
  
If the provided solution doesn’t meet your requirement, could you please elaborate your query with more information along with screenshots (if possible). It will be helpful for us to analyze on your requirement and provide a possible solution.  
  
Regards, 
Swathi G 


Loader.
Up arrow icon