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

Stop day selection/hover in RadScheduler MonthView

7 Answers 163 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 12 Feb 2013, 10:56 PM
I am using a RadScheduler only in MonthView to display appointments only (no editing functions at all).

I also have done a CSS change to highlight today.

The problem is that when the user hovers over days they are highlighted and if they click on a day it stays highlighted. This serves no purpose when there is no editing or other views.

How can I disable the hover and selection?

I tried overriding CSS but only managed to remove the hover on the day but not the day header.

7 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 Feb 2013, 04:40 PM
Hi,

 
You can set the NumberOfHoveredRows="0" property of RadScheduler.

hope this will help you.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Janice South
Top achievements
Rank 1
answered on 18 Feb 2013, 02:37 AM
Perfect. Thank you.
0
John
Top achievements
Rank 1
answered on 18 Feb 2013, 03:09 AM
Yes that works well for hover, but is there a way of stopping selection too?
0
Plamen
Telerik team
answered on 20 Feb 2013, 08:13 AM
Hi John,

 
If you want to stop the selection I will recommend you to override the styles caused by the rsSelectedSlot 
 as it is done for example in the code below:

td.rsSelectedSlot {
      background: none !important;
      border-color:#E8EAEC !important;
  }
   .rsSelectedSlot, .rsMonthView .rsSelectedSlot {
      background: none !important;
      border-color: none !important;
  }

Hope this will be helpful.

Kind regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 26 Feb 2013, 10:21 PM
That works well, except that I have today's date highlighted, and if you click on today it clears the highlight.
Though it is not a major problem.
Thank you for your help.
0
Terrance
Top achievements
Rank 1
answered on 03 May 2013, 11:59 PM
Where is the Hover Property? I would like to bind some database data to appoints as I hover them. Is there any documentation on that?
0
Plamen
Telerik team
answered on 06 May 2013, 11:09 AM
Hi Terrance,

 
You can set custom classes to the appointment in the AppointmentDataBound event as explained in this help topic in the Using custom background image section. Here is the CSS that you need to add to set different hover rules:

.RadScheduler .MyCustomAppointmentStyle .rsAptContent:hover,
       .RadScheduler .MyCustomAppointmentStyle .rsAptMid .rsAptIn:hover,
       .RadScheduler .MyCustomAppointmentStyle .rsAptMid:hover {
           background: Red;
       }

Hope this will be helpful.

Kind regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
John
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Janice South
Top achievements
Rank 1
John
Top achievements
Rank 1
Terrance
Top achievements
Rank 1
Share this question
or