Adding exceptions on slots

3 posts, 0 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 05 Jul 2012 Link to this post


    I'm working with the ScheduleView to allow users to schedule patients appointments on a doctor agenda. By default, all slots should be readonly, except some sections.

    So, first of all, I'm adding a readonly slot from DateTime.MinValue to DateTime.MaxValue. Once the app receives the doctor's agenda data, I'm creating NO readonly slots based on obtained data, so NO readonly slots are "overlapped" with the all area readonly slot. The issue is that user cannot add new Appointments on NO readonly slots and I suspect the reason is the readonly slot that occuppies all area. Is there any way to add exception on slots, similar to the exceptions on Appointment recurrence rule?

    On more thing. By default, the ScheduleView "highlights" "cell" when mouse is over. Is there any way to disable this behavior so cells are not highlighted when mouse is over?

  2. Yana
    Yana avatar
    4547 posts

    Posted 10 Jul 2012 Link to this post

    Hello Dani,

    You cannot add exceptions to the RecurrencePattern of the slots as with the appointments. Exceptions are created to the RecurrenceRule, while slots have only RecurrencePattern property.

    As to the other question - in order to disable the mouse over effect, you should set MouseOverHighlightStyle property of the ScheduleView:

            <Style x:Key="MouseOverHighlightStyle" TargetType="telerik:HighlightItem">
                <Setter Property="Background" Value="Transparent" />
        <Grid Background="White">  
            <telerik:RadScheduleView x:Name="sv" MouseOverHighlightStyle="{StaticResource MouseOverHighlightStyle}">
                    <telerik:DayViewDefinition />
                    <telerik:WeekViewDefinition />

    All the best,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
  4. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 10 Jul 2012 Link to this post

    Thanks Yana,

    Finally I could solve the first question. I'm creating the readonly slots once I have received the data, so I first declare the no readonly slots and then I fill the gaps with as many slots as necessary. It's a bit more laboriuos but not very difficult.

    Thanks for the answer for the second qustion. It's workinf fine
Back to Top