This is a migrated thread and some comments may be shown as answers.

Is there an easy way to find first editable slot for a given date?

3 Answers 20 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Martha
Top achievements
Rank 1
Martha asked on 21 Dec 2011, 12:47 AM
I am using SpecialSlotSource to define read only slots in my RadScheduleView.
I need to programatically add an appointment on a date but I don't have a specific time of day. I want to find the first editable slot on that date but don't want to iterate thru all my SpecialSlots & recurrence patterns of those slots to find it.
Is there an easier way to do this??

I see there is a CanEditSlot function in the SlotSelectionBehavior, but it is protected, so I cannot access it.

Any help with this would be greatly appreciated.

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 21 Dec 2011, 03:06 PM
Hi Martha,

At this stage iterating through the SpecialsSlots collection  is the only way you can implement the task.

Regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Martha
Top achievements
Rank 1
answered on 21 Dec 2011, 03:31 PM
That's what I was afraid you'd say.
Are there any plans to make the CanEditSlot function public??
0
Rosi
Telerik team
answered on 21 Dec 2011, 03:48 PM
Hello Martha,

Yes, we have plans to make the ReadOnlyBehavior class public. However at this stage I cannot set an exact frame when this will be done.

Kind regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Martha
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Martha
Top achievements
Rank 1
Share this question
or