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

Changing Mouse Cursor

2 Answers 158 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
TSCGlobal
Top achievements
Rank 1
TSCGlobal asked on 08 Feb 2008, 03:09 PM
Just a quick question - how do you change the mouse cursor in a code behind file (vb.net) when you hover your mouse pointer over an appointment? I want to give the user some visual clue that the appointment should be clicked to see more detail. Currently, the mouse curser implies that the appointment is editable, which it is not.

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 08 Feb 2008, 05:02 PM
Hi Duane,

Here is a quick solution:

code-behind:
Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound  
        If [MyCondition] Then 
            e.Appointment.CssClass = "ChangeCursor" 
        End If 
    End Sub 

aspx:
<head runat="server">  
    <style type="text/css">  
    .ChangeCursor:hover  
    {  
        cursor: crosshair;  
    }  
    </style> 
</head> 

Let us know how this works out for you.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
TSCGlobal
Top achievements
Rank 1
answered on 08 Feb 2008, 06:26 PM
Yes, that did it;

If e.Appointment.Visible=True Then
    e.Appointment.CssClass = "ChangeCursor"
End If


Thank you.
Tags
Scheduler
Asked by
TSCGlobal
Top achievements
Rank 1
Answers by
Peter
Telerik team
TSCGlobal
Top achievements
Rank 1
Share this question
or