AppointmentFormTemplateContainerBase.CancelHandler Property
Gets the handler of the cancel function.
Namespace: DevExpress.Web.ASPxScheduler
Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | A string, containing the JavaScript function body. |
Remarks
This property value contains a string like “function() {{ aspxSomeFunction(someArgs); }}”
Use the CancelHandler with ASPx control to perform a correct close for the appointment editing form. For example, in your customized appointment form template, make the following assignment:
btnCancel.ClientSideEvents.Click = container.CancelHandler, which assigns the default JavaScript function for the Cancel action to the Click event of the btnCancel element on the form.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CancelHandler property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.