Unplanned
Last Updated: 13 Aug 2024 10:01 by ADMIN
Nico
Created on: 12 Aug 2024 06:49
Category: Scheduler
Type: Bug Report
0
AppointmentTapCommand not working on Android

The AppointmentTapCommand is not working on Android in DayView and WeekView, only works on MonthView.
When selecting an appoinment in Day/WeekView the Scheduler scrolls to top

3 comments
ADMIN
Yana
Posted on: 13 Aug 2024 10:01

Hello Nico,

Thank you for the update - indeed, I managed to reproduce the erroneous behavior now. When the ToolTip is applied, it seems this handles the tap gesture and our Tap command is not called. Anyway, I confirm this is an issue on our side and I've updated its status to "Unplanned".

For the time being, you can use the following workaround - use the TapGestureRecognizer of the Grid and manually call the EditAppointmentDialog through the Scheduler' method:

 

<DataTemplate x:Key="CustomAppointmentTemplate">
 <Grid ToolTipProperties.Text="{Binding Occurrence.Appointment.Subject}">
	 <Grid.GestureRecognizers>
		 <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
	 </Grid.GestureRecognizers>
	 <local:CustomizedAppointmentView Subject="{Binding Occurrence.Appointment.Subject}"
								 SubjectTextColor="{StaticResource DefaultTextColor}"
								 Padding="8, 4, 4, 4"
								 BackgroundColor="{Binding Occurrence.Appointment.Location, Converter={StaticResource AppointmentLocationToColorConverter}}" />
	 <telerik:RadBorder Style="{StaticResource CustomAppointmentCategoryBorderStyle}" />
 </Grid>
</DataTemplate>

And the Tapped method:

private void TapGestureRecognizer_Tapped(object sender, Microsoft.Maui.Controls.TappedEventArgs e)
{
    var app = ((sender as View).BindingContext as AppointmentNode).Occurrence;
    this.scheduler.EditAppointmentWithDialog(app);
}

I hope this workaround would be acceptable. I've updated your points for bringing this to our attention.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Nico
Posted on: 12 Aug 2024 13:16

Hi Yana,

i'm able to reproduce this in your ControlsSamples -> Scheduler -> CustomizationView
Simply add ToolTipProperties to the Template Grid

I'm using a Pixel 5 Android 14 emulator

kind regards

Nico

ADMIN
Yana
Posted on: 12 Aug 2024 10:18

Hi Nico,

We have a similar issue reported and it's only reproduced on Samsung devices, here is the bug report:

Scheduler: [Android] AppointmentTapped event is not firing reliably on a Samsung device

Other than that, I am not aware of such an erroneous behavior with the appointment tap.  Could you send me more details on how you're reproducing it, is it on an emulator or a real device?

I look forward to your reply.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.