I need to style the WeekNumber coumn on a kendo-daterange component.

1 Answer 55 Views
Calendar DateRange MultiViewCalendar
Manjunath
Top achievements
Rank 1
Iron
Manjunath asked on 19 Sep 2023, 09:12 AM
I am using kendo-daterange component. I need to apply background color for the week number column since weeknumber column is greyed out more .

My pesudo code below:
--------------------
Styles :
-------
.weeknumber-cell{
    color : red;
}
------
<kendo-daterange>
<kendo-daterange-popup>
  <ng-template kendoDateRangePopupTemplate>
<kendo-multiviewcalendar kendoDateRangeSelection [selectionRange]="range" [weekNumber]="true"
  (selectionRangeChange)="handleSelectionRange($event)">
  <ng-template kendoCalendarWeekNumberCellTemplate let-context="cellContext">
<span class="weeknumber-cell">{{context.formattedValue}}</span>
  </ng-template>
</kendo-multiviewcalendar>
  </ng-template>
</kendo-daterange-popup>
</kendo-daterange>

1 Answer, 1 is accepted

Sort by
0
Accepted
Manjunath
Top achievements
Rank 1
Iron
answered on 19 Sep 2023, 09:54 AM | edited on 20 Sep 2023, 08:17 AM

Got the solution on myself . We need to change the styles from kendo_theme.css:

.k-calendar .k-calendar-content td {
  /* border-radius: 100px; */  //Comment this line
  border-color: transparent;
}

.k-calendar .k-content .k-alt,
.k-calendar .k-calendar-content .k-alt {
 /* opacity: 0.38;*/  //Comment this line and add below line
   opacity: 1.38;
  background-color: lightgrey;
}
Tags
Calendar DateRange MultiViewCalendar
Asked by
Manjunath
Top achievements
Rank 1
Iron
Answers by
Manjunath
Top achievements
Rank 1
Iron
Share this question
or