DayView - Tap a time slot to create new

2 posts, 0 answers
  1. IanV
    IanV avatar
    39 posts
    Member since:
    Dec 2008

    Posted 24 Jul 2019 Link to this post

     

    When a user taps a timeslot without an appointment, I want to create a new appointment, but with my own UI.

     

    How do I get a Tapped event on an empty time slot so I can then show my own Create UI?

    None of these events below fire in DayView when a empty Timeslot is tapped.

     
     
     
     
    <telerikInput:RadCalendar x:Name="calendar"
                       SelectedDate="{Binding SelectedDate, Mode=TwoWay}"
                       DisplayDate="{Binding DisplayDate, Mode=TwoWay}"
                       NativeControlLoaded="CalendarLoaded"
                       AppointmentTapped="Calendar_OnAppointmentTapped"
                       CellTapped="Calendar_OnCellTapped"
                       SelectionChanged="Calendar_OnSelectionChanged"
                       DisplayDateChanged="Calendar_OnDisplayDateChanged"
                       ViewChanged="Calendar_OnViewChanged"
                       AppointmentsSource="{Binding Items}">
  2. Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1195 posts

    Posted 24 Jul 2019 Link to this post

    Hello Ian,

    The TimeslotTapped event should be what you're looking for.

    If you want the built-in scheduling features, including the add/edit appointment UI, enable the Scheduler mode. Set the SchedulingUiEnabled property to True:

    <telerikInput:RadCalendar x:Name="calendar"
                      SchedulingUiEnabled="True"
                      ViewMode="MultiDay">
        <telerikInput:RadCalendar.MultiDayViewSettings>
            <telerikInput:MultiDayViewSettings DayStartTime="8:00:00" />
        </telerikInput:RadCalendar.MultiDayViewSettings>
    </telerikInput:RadCalendar>

    For more information about the TimeslotTapped event and the SchedulingUI features, please visit the following documentation: https://docs.telerik.com/devtools/xamarin/controls/calendar/calendar-scheduling-ui 

    Regards,
    Lance | Technical Support Engineer, Principal
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top