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

Adding exceptions on slots

2 Answers 79 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 05 Jul 2012, 11:34 AM
Hi,

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?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Jul 2012, 08:52 AM
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:

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

All the best,
Yana
the Telerik team

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

0
Daní
Top achievements
Rank 1
answered on 10 Jul 2012, 08:58 AM
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
Tags
ScheduleView
Asked by
Daní
Top achievements
Rank 1
Answers by
Yana
Telerik team
Daní
Top achievements
Rank 1
Share this question
or