Skip to main content

ASPxClientTimeInterval.GetDuration Method

Client-side function that returns the duration of the specified time interval.

#Declaration

TypeScript
GetDuration(): number

#Returns

Type Description
number

The number of ticks in a time interval that is the appointment duration.

#Remarks

The following example illustrates how to extend the currently selected interval for a single time slot.

function OnSelectionChanged(s, e) {  
    var selectedInterval = clientScheduler.GetSelectedInterval();  
    selectedInterval.SetDuration(selectedInterval.GetDuration() * 2); 
    ...
}
See Also