Hello,
I have a problem (with Android) with Scheduler update. I have placed a scheduler on a contentpage
<schedule:SfSchedule x:Name="Schedule" ScheduleView="WeekView" Locale="it" TimeIntervalHeight="180"
ShowResourceView="True" ResourceViewHeight="100" ShowAppointmentsInline="True"
DataSource="{Binding ListOfMeeting}"
ScheduleResources="{Binding Resources}"
SelectedResources="{Binding SelectedResources}"
VisibleDatesChangedEvent="Schedule_VisibleDatesChangedEvent"
CellTapped="Schedule_CellTapped"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand">
<schedule:SfSchedule.AppointmentMapping>
<schedule:ScheduleAppointmentMapping
ColorMapping="Color"
EndTimeMapping="EndTime"
IsAllDayMapping="IsAllDay"
StartTimeMapping="BeginTime"
SubjectMapping="EventName"
MinHeightMapping="MinimumHeight"
ResourceIdsMapping="Resources"/>
</schedule:SfSchedule.AppointmentMapping>
<schedule:SfSchedule.ResourceMapping>
<schedule:ResourceMapping Name="Name"
Id="ID"
Color="Color"
Image="Image"
/>
</schedule:SfSchedule.ResourceMapping>
<schedule:SfSchedule.ResourceViewSettings>
<schedule:ResourceViewSettings SelectionMode ="Multiple">
</schedule:ResourceViewSettings>
</schedule:SfSchedule.ResourceViewSettings>
<schedule:SfSchedule.TimelineViewSettings>
<schedule:TimelineViewSettings StartHour="8" EndHour="20"/>
</schedule:SfSchedule.TimelineViewSettings>
<schedule:SfSchedule.BindingContext>
<pages:EmptyPageViewModel />
</schedule:SfSchedule.BindingContext>
</schedule:SfSchedule>
When I load the page all works fine, but I'm not able to change the DataSource collection. If I add or remove an item form the collection, nothing happends. For example in CellTapped event I do:
private async void Schedule_CellTapped(object sender, Syncfusion.SfSchedule.XForms.CellTappedEventArgs e)
{
try
{
this.MainActivityIndicator.IsVisible = true;
this.MainActivityIndicator.IsRunning = true;
Meeting meeting = e.Appointment as Meeting;
this.selectedMeeting = meeting;
if (meeting != null)
{
EmptyPageViewModel viewModel = this.Schedule.BindingContext as EmptyPageViewModel;
viewModel.ListOfMeeting.Remove(this.selectedMeeting);
}
}
finally
{
this.MainActivityIndicator.IsVisible = false;
this.MainActivityIndicator.IsRunning = false;
}
}
The first time that I tap on cell meeting is not equals to null, the second time that I tap on cell meeting is null, but it still apparing on form. It's a refresh problem?
Thanks,
Davide Roncelli