AppointmentItem style and IsEnabled property

4 posts, 0 answers
  1. DGIMBERT
    DGIMBERT avatar
    3 posts
    Member since:
    Sep 2012

    Posted 25 Jun 2012 Link to this post

     

     

     

    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

     

  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 27 Jun 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. DGIMBERT
    DGIMBERT avatar
    3 posts
    Member since:
    Sep 2012

    Posted 27 Jun 2012 Link to this post

    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.
  5. Dani
    Admin
    Dani avatar
    848 posts

    Posted 04 Jul 2012 Link to this post

    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 >>
Back to Top