Skip to main content
A newer version of this page is available. .

ASPxClientDateNavigator.DayCellCustomHighlight Event

Allows you to provide custom highlighting styles for day cells.


DayCellCustomHighlight: ASPxClientEvent<ASPxClientDateNavigatorDayCellCustomHighlightEventHandler<ASPxClientDateNavigator>>

Event Data

The DayCellCustomHighlight event's data class is ASPxClientDateNavigatorDayCellCustomHighlightEventArgs. The following properties provide information specific to this event:

Property Description
appointments Provides access to the processed appointments.
date Provides access to the date object of the processed cell.
htmlElement Gets the HTML element that the event was triggered on.



The DayCellCustomHighlight event is in effect if the DateNavigatorProperties.AppointmentDatesHighlightMode is set to Custom.

function OnDayCellCustomHighlight(s, e) {
    if(e.appointments.length > 0)
        e.htmlElement.className = e.htmlElement.className + " customStyle";

Online Demo

Date Navigator

See Also