Several questions regarding SfSchedule

Hello,

i'm evaluating the SFSchedule for use in one of our apps and have several questions regarding this control.
I'm using the SfSchedule in a prism application, so i try configuring the component in xaml, with bindings and a viewmodel.

1. is it possible to have different ScheduleAppointmentMappings for a DayView and a WeekView? I would like to display differents texts in the appointment cells, for example a shorter text in the WeekView and a longer text in the DayView.
Since ScheduleAppointmentMapping is a bindable property i tried changing it by binding a new instance when i switch between DayView and WeekView, but that doesn't change the visual appearence of the appointments.

2. when i try to style an appoint with an event like described in the documentation at https://help.syncfusion.com/xamarin/sfschedule/data-bindings#customize-appearance-using-event
i get an null pointer exception. args.appointmentStyle is always null.

3. i'm trying to switch between DayView and WeekView with the ViewHeaderTappedEvent, so when i start with the WeekView and tap on the header i switch to the dayview of the tapped date.
To get to the tapped day i set the MoveToDate binding to the DateTime of the ViewHeaderTappedEventArgs.
This works well as long as i don't tap on "today".

So lets say i have a Weekview with dates from "1" to "7":

- day "3" is the highlighted "today". 
- when i tap on the "3" i get to the DayView of day "3".
- now i tap again the header to get back to the WeekView
- now i tap on day "5" and get the DayView of day "5".
- back again to the WeekView
- now i tap again on day "3", but instead of getting to the DayView of day 3 i get the DayView of Day "5"

This is repeatable, i always get the DayView of the last selected day, and not of "today".

edit: this is only on Android, on iOS it works as expected.


4. will it be possible to style the appointments using a DataTemplate?

5. when i try to style an appointment with a custom cell only the outer most layout seems to gets the horizontal and vertical options like FillAndExpand. 
If i have an outer stacklayout with an inner stacklayout, only the outer layout fills the whole appointment, the inner layout does not use the options.

6. ScheduleAppointmentMapping has properties like NotesMapping or LocationMapping, but these are not rendered for example in the DayView.
Is it possible to include these as new default cell rendering?

7. When i try to use my own custom cell with ViewLayoutOptions.Overlay i get the desired output on Android, but on IOS the whole cell is empty, i just get the colored cell.


I hope you can help me with my questions and problems,

Regards,
  Kalle

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team February 14, 2018 01:01 PM UTC

Hi Kalle Bumba, 
 
Thank you for contacting Syncfusion support. 
 
1. Subject based on Views 
As of now, Changing the property of ScheduleAppointmentMapping at runtime support is not available, it will change only when changing the ItemSource at runtime. You can use CustomView for the same to achieve this requirement in sample level. As of now, you can use OnAppointmentLoadedEvent of Schedule, we have already implemented DataTemplate support for Appointments and it will be included in our upcoming Volume 1 release, which is expected to be available by end of this week of February 2018. 
 
2. AppointmentStyle Null 
The AppointmentStyle argument of OnAppointmentLoadedEvent default value has been changed as null, please initialize and use as in the below code example. We have not updated this changes in our Online User Guide documentation, we have logged report for the same. We will update the same as early as possible.  
 
[c#] 
                AppointmentStyle appointmentStyle = new AppointmentStyle();
                appointmentStyle.BorderColor = Color.Blue;
                appointmentStyle.BorderCornerRadius = 12;
                appointmentStyle.BorderWidth = 10;
                e.appointmentStyle = appointmentStyle; 
 
 
3. MoveToDate issue 
We have already found and fixed the issue “Schedule MoveToDate property with current day in Xamarin Forms (Android)” and the issue fix will be included in our upcoming Volume 1 main release which is expected to be available by end of this week of February 2018. We appreciate your patience until then. 
 
4. DataTemplate support for Appointments 
As of now, the mentioned support for styling the Schedule Appointment using DataTemplate is not available. As mentioned above, we have implemented this feature and it will be included in our upcoming Volume 1 release. 
 
5. Appointment CustomView rendering 
We have checked the issue with CustomView of Appointment applied through OnAppointmentLoadedEvent in Xamarin Forms (Android), while setting custom view as individual element it works as expected. When adding another child in the parent, child not occupying entire size based on the vertical and horizontal options. We have checked with Label inside Grid / StackLayout (works fine), Button in the StackLayout (faced issue). 
 
Sample link: ScheduleDemoSample
 
 
Could you please revert to us with more details about the View you’re using (Parent and child elements) by modifying the above sample, it will be helpful for us to check on it and provide you the solution. 
 
6. Appointment Subject Rendering behavior 
As per the implementation, Appointment subject alone will render in the AppointmentView. You can use CustomView for the same to achieve this requirement of rendering Location, notes, etc.. in sample level. As of now, you can use OnAppointmentLoadedEvent of Schedule, we have already implemented DataTemplate support for Appointments and it will be included in our upcoming Volume 1 release, which is expected to be available by end of this week of February 2018. 
 
7. Cell CustomView - Overlay 
We have checked with customizing the Month Cell with custom view through OnMonthCellLoadedEvent in Xamarin Forms (iOS) and the view has rendered properly. We have already found and fixed the similar issue with CustomView of Month InlineView, can you please confirm the UI Element of Schedule you’re customizing and the customview details along with the code snippet, we will check on it and help you with that. 
 
Regards,  
Subburaj Pandian V 
 
 


Loader.
Up arrow icon