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

how to highlight today's date ?

4 Answers 337 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
peter
Top achievements
Rank 1
peter asked on 12 Jul 2019, 03:55 PM

Hi ,

how to highlight today's date ?I mostly use the month view. Is it in CSS. or a property ?

Thanks, Peter

note  : I saw a tip for rad control , but i don't think this applies  https://www.telerik.com/forums/how-to-i-get-the-current-date-to-be-highlighted 

4 Answers, 1 is accepted

Sort by
0
peter
Top achievements
Rank 1
answered on 15 Jul 2019, 02:22 PM

Is this done with javascript ? Any samples ?

Thanks,PEter

0
Peter
Top achievements
Rank 1
answered on 16 Jul 2019, 02:45 PM

hi,

any suggestions ?

Thanks,Peter

1
Dimitar
Telerik team
answered on 17 Jul 2019, 06:59 AM
Hi Peter,

The timeslot for Today has class k-today applied. It is possible to change the timeslot background color with this class as follows:

<style>
  html body .k-scheduler .k-scheduler-table .k-today {
    background-color: yellow;
  }
</style>

The following Dojo snippet shows this customization applied - screenshot.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Peter
Top achievements
Rank 1
answered on 17 Jul 2019, 08:04 PM

Yes, that worked.

Note : Since I have MVC , I added the style snippet just before the </head> in _Layout.cshtml

Thanks, Peter

Tags
Scheduler
Asked by
peter
Top achievements
Rank 1
Answers by
peter
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or