public WebDocumentViewerClientSideEventsBuilder PreviewClick( string callback )
Public Function PreviewClick( callback As String ) As WebDocumentViewerClientSideEventsBuilder
A WebDocumentViewerClientSideEventsBuilder that can be used to further configure the Document Viewer Client Side Events.
The PreviewClick event enables performing different actions when an end-user clicks the report document in the Web Document Viewer. When implementing a handling function, use the objects passed as parameters. The first parameter passes the event sender that is the ClientDocumentViewer object. The second one is an object with the following structure.
A value specifying the zero-based index of the page that has been clicked.
Provides information on a visual brick representing content of a report control that has been clicked.
Specifies whether or not the event was handled and no default processing is required.
A function that is performed if the Handled field is set to false (the default value). You can call this function within your event handler if required, and set the Handled field to true.
Returns the text displayed by the report element that has been clicked.
Returns additional information on the brick.
The code sample below demonstrates how to obtain the text of an element that has been clicked.