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

Hovering effect for entire row

3 Answers 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Navaneeth Kumar
Top achievements
Rank 1
Navaneeth Kumar asked on 29 May 2013, 01:59 PM
Hi,

In Timeline view, is it possible to override the default behavior of highlighting a specific time slot when hovering over it?

I would want the entire row to be highlighted instead of the particular timeslot?

Thanks in advance.
Navaneeth

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 May 2013, 08:22 AM
Hi Navaneeth,

 
You can achieve similar scenario by setting a custom new style for hovering as for example in the code below:

<style type="text/css">
 
       .rsAllDayRow:hover, .rsAptCreate {
       background-color:red !important;
       background-image:none !important;
       }
   </style>

Hope this will be helpful.

Regards,
Plamen
Telerik
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
Navaneeth Kumar
Top achievements
Rank 1
answered on 30 May 2013, 09:18 AM
Hi Plamen,

Thanks for the quick response. However when the user hovers over the row in scheduler, there is a row in a radgrid that needs to have the same hover effect too. So I am looking at any client events in the scheduler by which the hovering effect can be applied.

Your help would be appreciated.

Thanks,
Navaneeth
0
Plamen
Telerik team
answered on 03 Jun 2013, 10:30 AM
Hi Navaneeth,

 
You can achieve similar functionality with jQuery as in the code below:

function pageLoad() {
              var $ = $telerik.$;
              $(".rsAllDayRow").on("mouseenter", function myfunction() {
                  $(this).children().css("background-color", "red");
                  $(this).children().css("background-image", "none");
              })
              $(".rsAllDayRow").on("mouseleave", function myfunction() {
                  $(this).children().css("background-color", "inherit");
                  $(this).children().css("background-image", "inherit");
              })
          }

Hope this will be helpful.

Regards,
Plamen
Telerik
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
Navaneeth Kumar
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Navaneeth Kumar
Top achievements
Rank 1
Share this question
or