AppointmentFormTemplateContainerBase.CancelHandler Property
Gets the handler of the cancel function.
Namespace: DevExpress.Web.ASPxScheduler
Assembly: DevExpress.Web.ASPxScheduler.v24.1.dll
NuGet Package: DevExpress.Web.Scheduler
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.
See Also