Issue in Custom Appointment

2 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    3 posts
    Member since:
    Mar 2014

    Posted 11 Mar 2014 Link to this post

    I have a custom template for my Appointments , the main problem is Touch events are not working

    I  can click or double click in my custom Appointment but  I can not select  the appointments with touch.

    Here is my xaml.

    My DataTemplate to fill the  content 
     <DataTemplate x:Key="PatientAppointmentDataTemplate">

            <Grid MinHeight="150">
    <---> Content



    My Selector.

    <selectors:AppointmentSelector x:Key="DefaultAppointmentStyleSelector">
                <Style TargetType="telerik:AppointmentItem">
                    <Setter Property="Template">
                            <ControlTemplate TargetType="telerik:AppointmentItem">
                                <ContentControl DataContext="{Binding .}">



                                        <i:EventTrigger EventName="TouchDown" SourceObject="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:AppointmentItem}}}">
                                            <ei:ChangePropertyAction PropertyName="SelectedAppointment"
                                                                     TargetObject="{Binding RelativeSource={RelativeSource FindAncestor,
                                                                                                                           AncestorType={x:Type telerik:RadScheduleView}}}"
                                                                     Value="{Binding}" />

                                            <i:InvokeCommandAction Command="telerik:RadScheduleViewCommands.EditAppointment" />

                                    <Grid x:Name="Root"
                                            <MouseBinding Command="telerik:RadScheduleViewCommands.EditAppointment" MouseAction="LeftDoubleClick" />

                                        <ContentPresenter ContentTemplate="{StaticResource PatientAppointmentDataTemplate}" />

    My Slots have IsReadOnly= False.

    I handled  ShowDialog to personalize the edit or delete appointments.

             this.scheduleView.ShowDialog += scheduleView_ShowDialog;

     private async void scheduleView_ShowDialog(object sender, ShowDialogEventArgs e)
                e.Cancel = true;
               /// My code

    But this event does not fire too, when I do double touch simulating MouseDoubleClick.

    Please help me. Thank you.

  2. Kalin
    Kalin avatar
    1189 posts

    Posted 13 Mar 2014 Link to this post

    Hi Ricardo,

    Thank you for contacting us.

    You won't be able to handle the Touch events as they are handled by our TouchManager in the ScheduleView code. However changing the default template of the Appointments shouldn't cause any issues. We have tested the explained scenario with the default Appointments and were successfully able to select an Appointment by tap and handle the ShowDialog event by double tap. Please try to remove all of the customizations you have made, apply the custom template as simple is possible and let us know if the issue is still present. If so I'll ask you to share some more detailed information about the version of the controls you are using as well as what customizations you have applied.

    Hope this will help.


    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  3. DevCraft R3 2016 release webinar banner
Back to Top