This is a migrated thread and some comments may be shown as answers.
DayView - Is there any way to do these things?
2 Answers 55 Views
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 25 May 2017, 04:28 PM

The calendar dayview seems to work great, but it seems it's missing a new necessary options for me (at least I couldn't find these). Please tell me if any of these options are available, so we know to purchase this set or look elsewhere:

 

1. Can I set the start and end time on the selected day? Currently, it shows Midnight to Midnight. I want this to filter out any hours outside business hours, or at least automatically scroll directly to the business opening time.

2. Is there a way to long click an empty time slot to pop a menu, specific to that time slot? ie. I want to long hold to open a new page that already knows the time I long held on.

3. Is there a way to show every 15 minutes in the side bar, instead of just every hour?

2 Answers, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 2
answered on 26 May 2017, 11:00 AM

Regarding # 1: see the DayViewCalendarRenderer in the QSF project in the Trial Package.

 

  public class DayViewCalendarRenderer : CalendarRenderer
    {
        public override bool TrySetViewMode(Telerik.XamarinForms.Input.CalendarViewMode view, bool isAnimated)
        {
            bool hasNavigated = base.TrySetViewMode(view, isAnimated);
            var presenter = Control?.Presenter as TKCalendarDayViewPresenter;
            if (presenter != null)
            {
                presenter.DayView.EventsView.StartTime = 3600 * 8;
                presenter.DayView.EventsView.EndTime = 3600 * 22;

0
Stefan Nenchev
Telerik team
answered on 26 May 2017, 12:10 PM
Hello Anthony,

With the current implementation of the RadCalendar,  2 of your requirements can be achieved by creating custom renderers and modifying the appearance of the native controls. I have attached a sample for your reference on how to change the start and end date time, as well as modifying the interval time of your day view.

As for the requirement of holding an empty time slot and adding an event, the RadCalendar does not expose such feature at this point. However, I have logged the behavior as a feature request in our internal system so we can consider implementing it. You can track the progress of the item on the following page from our Ideas & Feedback portal - RadCalendar: Support editing in DayView mode. I suggest you subscribe to the item in order to automatically receive notifications.

Please have a look at the attached sample and consider such approach from your end.

Regards,
Stefan Nenchev
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
Anthony
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 2
Stefan Nenchev
Telerik team
Share this question
or