Back to Devexpress

ASPxClientPreviewClickEventArgs Class

xtrareports-js-aspxclientpreviewclickeventargs.md

latest5.1 KB
Original Source

ASPxClientPreviewClickEventArgs Class

Provides data for the ASPxClientWebDocumentViewer.PreviewClick and ASPxClientReportDesigner.PreviewClick events.

Declaration

ts
declare class ASPxClientPreviewClickEventArgs extends ASPxClientEventArgs

Remarks

ASPxClientPreviewClickEventArgs objects are automatically created, initialized and passed to corresponding event handlers.

Inheritance

ASPxClientEventArgs ASPxClientPreviewClickEventArgs

constructor(pageIndex, brick)

Initializes a new instance of the ASPxClientPreviewClickEventArgs class with the specified settings.

Declaration

ts
constructor(
    pageIndex: number,
    brick: DevExpress.Reporting.Viewer.Utils.IBrickNode
)

Parameters

NameTypeDescription
pageIndexnumber

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.

|

Properties

Brick Property

Provides information on a visual brick representing content of a report control that has been clicked.

Declaration

ts
Brick: DevExpress.Reporting.Viewer.Utils.IBrickNode

Property Value

TypeDescription
IBrickNode

An object that provides information on a visual brick.

|

Handled Property

Specifies whether or not the event was handled and no default processing is required.

Declaration

ts
Handled: boolean

Property Value

TypeDescription
boolean

true , if the event is completely handled by custom code and no default processing is required; otherwise, false.

|

Remarks

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

DefaultHandler

PageIndex Property

Gets a value specifying the zero-based index of the page that has been clicked.

Declaration

ts
PageIndex: number

Property Value

TypeDescription
number

An integer value that specifies a page index.

|

Methods

DefaultHandler Method

Specifies the default function used to handle the ASPxClientWebDocumentViewer.PreviewClick event.

Declaration

ts
DefaultHandler(): void

Remarks

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

Handled

GetBrickText Method

Returns the text displayed by the ASPxClientPreviewClickEventArgs.Brick.

Declaration

ts
GetBrickText(): string

Returns

TypeDescription
string

A string that specified the brick text.

|

GetBrickValue Method

Returns a string providing additional information about the current ASPxClientPreviewClickEventArgs.Brick by the specified key.

Declaration

ts
GetBrickValue(
    key?: string
): string

Parameters

NameTypeDescription
keystring

A string that specifies a unique key.

|

Returns

TypeDescription
string

A string that provides additional information on the current brick by the specified key.

|