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

AppointmentItem style and IsEnabled property

3 Answers 116 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
DGIMBERT
Top achievements
Rank 1
DGIMBERT asked on 25 Jun 2012, 04:06 PM

 

 

 

Hello,
do you know if it's possible to create an AppointmentItem style with the IsEnabled property set to false, but with an active tooltip?
I tryed folowing code, but it doesn't seem to work.

<
Style x:Key="ReadOnlyVerticalStyle" TargetType="telerik:AppointmentItem"> 
    <Setter Property="IsEnabled" Value="False"/>
    <Setter Property="ToolTipService.ToolTip">
        <Setter.Value
            <TextBlock Text="test"/> 
        </Setter.Value
    </Setter>
</Style>

Thanks a lot

 

3 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 27 Jun 2012, 07:08 AM
Hello David,

I am not sure I understand what you wish the end result to be. To "disable" appointments, you can simply make them read-only. Please, check this online example of ReadOnly and Special slots. Appointments in the read-only area are read-only appointments. More details can be found here.

Please, share mode details if needed.

Greetings,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
DGIMBERT
Top achievements
Rank 1
answered on 27 Jun 2012, 01:40 PM
Thank, for your answer,
if we consider our scenario, all slots remains writable. But some of the appointments, edited by users with specific rights, are read-only, (using AppointmentItem style property IsEnabled = False). But once the IsEnabled property is set to False, it seems, it isn't any more possible to set a toolTip to those events. Perhaps you know a way to do that?

(I think, but I'm not sure, the IsEnabled property intecept all mouse events)

Best regards.
0
Dani
Telerik team
answered on 04 Jul 2012, 08:18 AM
Hi David,

We are sorry for the delayed reply.

It is expected behavior that when an appointment is disabled a tooltip would not appear on mouse over.  If you want appointments to appear as disabled but still show the tooltip, you could try preventing the EditAppointment dialog from showing. This will prevent an appointment from being edited.

You can cancel the dialog using the AppointmentEditing event and set e.Cancel = true.

You can find more details here.

In the same manner you can also cancel the deletion of appointments via the AppointmentDeleting event.  More on RadScheduleView events can be found here.

I hope this helps.

Kind regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ScheduleView
Asked by
DGIMBERT
Top achievements
Rank 1
Answers by
Dani
Telerik team
DGIMBERT
Top achievements
Rank 1
Share this question
or