Access to Slot.Infos property

1 Answer 28 Views
ScheduleView
Ola
Top achievements
Rank 1
Ola asked on 21 Nov 2023, 02:48 PM

Hi

I have created a behavior for quickly adding appointments on mouse up.

I have currently been using the SelectedSlot (Start/End) property of RadScheduleView to create an appointment, but now I discovered that when selecting with Alt-key down you can get the same Start/End selected over multiple days. When debugging I can see these intervals in the Slot.Infos property, but this property is internal so I can't access it.

Is there another way to find these intervals in the RadScheduleView?

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 24 Nov 2023, 12:23 PM

Hello Ola,

Such information is not provided by the RadScheduleView control out of the box. Due to this, I have logged a new feature request in our feedback portal, to include support for this. It can be found a the following link where you can vote for it, as well as follow it, in order to get notified via e-mail when its status gets changed:

ScheduleView: Add API to return information about the selected slots on different days (telerik.com)

As a token of gratitude for bringing this to our attention, I have updated your Telerik points.

As a possible workaround for the time being, you could try to create a custom SlotSelectionBehavior and override the GetSelectionOverride method. Then, you can cache the currently selected slot using the parameters' information in a collection, which you would have to manage so that it does not contain slots that are no longer selected.

I hope the provided information will be of help to you.

Regards,
Stenly
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.

Ola
Top achievements
Rank 1
commented on 29 Nov 2023, 09:27 AM

Thank you to the reply and logging the feature request.

/Ola

Tags
ScheduleView
Asked by
Ola
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or