This is a migrated thread and some comments may be shown as answers.
DayView - Tap a time slot to create new
1 Answer 8 Views
This is a migrated thread and some comments may be shown as answers.
IanV
Top achievements
Rank 1
Veteran
IanV asked on 24 Jul 2019, 08:45 PM

 

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}">

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 24 Jul 2019, 09:06 PM
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
Asked by
IanV
Top achievements
Rank 1
Veteran
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or