Change row height in week and day view

1 Answer 92 Views
Scheduler
Brian Taylor
Top achievements
Rank 1
Brian Taylor asked on 11 Jun 2023, 10:17 AM

I tried the approach stated on https://www.telerik.com/forums/change-row-height-in-week-and-day-view, but this only allows a minimum row height of around 22 pixels.

 

I found some old code of mine, which allowed the desired height (about 16 pixels), but the code only works up to version 2021.3

See https://dojo.telerik.com/AvOkisad which uses ".k-scheduler-table td,.k-scheduler-table th { height: 1em }"

How can this be achieved in the latest release, as you can see it doesn't work as shown here https://dojo.telerik.com/iYoCobuG 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 15 Jun 2023, 05:19 AM

Hello Brian,

I have already replied in the support thread regarding the same issue. I will paste my reply here below as well as it could be helpful to the other users in the forum who have the same issue.

 

I would suggest in addition to setting the height, to set also the padding top and bottom for example to 0 px.

.k-scheduler-dayview .k-scheduler-table td,
      .k-scheduler-weekview tr:nth-child(2) .k-scheduler-table td,
      .k-scheduler-monthview .k-scheduler-table td {
        height: 12px !important;
         padding-top: 0px;
         padding-bottom: 0px;
      }
      
      .k-scheduler-times .k-scheduler-table th{
        padding-top: 0px;
        padding-bottom: 0px;
      }

Here you will find the modified example using the latest version.

 

Regards,
Neli
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Tags
Scheduler
Asked by
Brian Taylor
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or