Scheduler: Event Customization
The events can be customized using OnBeforeEventRender event. The OnBeforeEventRender method is called once for each event in the Events collection.
The following properties can be customized:
Appearance
- InnerHtml - event HTML
- DurationBarColor - CSS color of the duration bar
- DurationBarImageUrl - image that will be used for the duration bar
- BackgroundColor - CSS color of the event background
- CssClass - event CSS class (will be prefixed with DayPilotScheduler.CssClassPrefix value)
- BackgroundImage - event background image
- BackgroundRepeat - event background repeat style
Behavior
- ToolTip - event tool tip
- StaticBubbleHtml - event bubble HTML (the bubble content will not be loaded from the server if the StaticBubbleHtml is set)
- ContextMenuClientName - context menu
- EventClickEnabled - if set to false, disables event clicking
- EventResizeEnabled - if set to false, disables event resizing
- EventMoveEnabled - if set to false, disables event moving
- EventRightClickEnabled - if set to false, disables event right clicking
- EventDoubleClickEnabled - if set to false, disables event double clicking
All Event*Enabled properties only disable the handler that was enabled for the control globally.