xtrareports-js-aspxclientpreviewclickeventargs.md
Provides data for the ASPxClientWebDocumentViewer.PreviewClick and ASPxClientReportDesigner.PreviewClick events.
declare class ASPxClientPreviewClickEventArgs extends ASPxClientEventArgs
ASPxClientPreviewClickEventArgs objects are automatically created, initialized and passed to corresponding event handlers.
ASPxClientEventArgs ASPxClientPreviewClickEventArgs
Initializes a new instance of the ASPxClientPreviewClickEventArgs class with the specified settings.
constructor(
pageIndex: number,
brick: DevExpress.Reporting.Viewer.Utils.IBrickNode
)
| Name | Type | Description |
|---|---|---|
| pageIndex | number |
An integer value that specifies the zero-based index of the page that has been clicked. This value is assigned to the ASPxClientPreviewClickEventArgs.PageIndex property.
| | brick | IBrickNode |
An object that provides information on a visual brick representing the content of a report control that has been clicked. This value is assigned to the ASPxClientPreviewClickEventArgs.Brick property.
|
Provides information on a visual brick representing content of a report control that has been clicked.
Brick: DevExpress.Reporting.Viewer.Utils.IBrickNode
| Type | Description |
|---|---|
| IBrickNode |
An object that provides information on a visual brick.
|
Specifies whether or not the event was handled and no default processing is required.
Handled: boolean
| Type | Description |
|---|---|
| boolean |
true , if the event is completely handled by custom code and no default processing is required; otherwise, false.
|
When handling the ASPxClientWebDocumentViewer.PreviewClick event, set the Handled property to true to indicate that default processing should not occur. If you set this property to false , the ASPxClientPreviewClickEventArgs.DefaultHandler function will be called after executing code in the event handler.
See Also
Gets a value specifying the zero-based index of the page that has been clicked.
PageIndex: number
| Type | Description |
|---|---|
| number |
An integer value that specifies a page index.
|
Specifies the default function used to handle the ASPxClientWebDocumentViewer.PreviewClick event.
DefaultHandler(): void
When handling the ASPxClientWebDocumentViewer.PreviewClick event, you can call the DefaultHandler function to preform default processing. This function will also be automatically called after executing custom code in the event handler if you set the ASPxClientPreviewClickEventArgs.Handled property of an event argument to false.
See Also
Returns the text displayed by the ASPxClientPreviewClickEventArgs.Brick.
GetBrickText(): string
| Type | Description |
|---|---|
| string |
A string that specified the brick text.
|
Returns a string providing additional information about the current ASPxClientPreviewClickEventArgs.Brick by the specified key.
GetBrickValue(
key?: string
): string
| Name | Type | Description |
|---|---|---|
| key | string |
A string that specifies a unique key.
|
| Type | Description |
|---|---|
| string |
A string that provides additional information on the current brick by the specified key.
|