Skip to main content

ASPxSchedulerPrintAdapterBase.ValidateWorkTime Event

Occurs when the print adapter retrieves the work time value for use in the report.

Namespace: DevExpress.Web.ASPxScheduler.Reporting

Assembly: DevExpress.Web.ASPxScheduler.v24.2.dll

Declaration

public event WorkTimeValidationEventHandler ValidateWorkTime

Event Data

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

Property Description
Resource Provides access to a resource, for which the work-time interval is validated.
TimeInterval Provides access to a time interval, for which the work-time interval is validated.
WorkTime Gets or sets the work-time interval to be validated.
WorkTimes Provides access to the collection of work times specified for a single day.

Remarks

Handle the ValidateWorkTime event to check and modify the work time when the report is being built and the controls are rendered. This event enables you to set a different work time for different days and resources. To accomplish this, check the WorkTimeValidationEventArgs.Resource and the WorkTimeValidationEventArgs.TimeInterval, which identify the scope for which the work time is specified, and set the WorkTimeValidationEventArgs.WorkTime as required.

See Also