Click or drag to resize

DocumentSavedEventArgsThenExecuteJS Property

Gets or sets a value representing a JavaScript script which the client browser should execute.

Namespace:  RadPdf.Integration
Assembly:  RadPdf (in RadPdf.dll) Version: (
public string ThenExecuteJS { get; set; }

Property Value

Type: String

This property has no effect if the arguments are from PdfWebControl.Saved. This property should only be used with PdfIntegrationProvider.OnDocumentSaved.

If using the window object, remember that RAD PDF operates inside of an IFRAME in most cases. You should instead consider syntax similar to (window.parent || window) instead.

If the JavaScript returns true, RAD PDF's client side code will hault after execution and the interface may no longer be usable. Additionally, if the code causes an unhandled exception, this may also cause RAD PDF to no longer be usable by the client.

When set, any ThenRedirectTo and ThenReloadDocument values are cleared.

This JavaScript is executed in the scope of a PdfWebControlApi instance (meaning this represents a Client API instance).

See Also