Back to Devexpress

ASPxClientReportToolbar Class

xtrareports-js-aspxclientreporttoolbar.md

latest4.2 KB
Original Source

ASPxClientReportToolbar Class

The client-side equivalent of the ASPxClientDocumentViewer control’s toolbar.

Declaration

ts
declare class ASPxClientReportToolbar extends ASPxClientControl

Remarks

To access an ASPxClientReportToolbar , call the ASPxClientDocumentViewer.GetToolbar method.

Inherited Members

Init

name

AdjustControl

GetClientVisible

GetHeight

GetMainElement

GetParentControl

GetVisible

GetWidth

InCallback

SendMessageToAssistiveTechnology(message)

SetClientVisible(visible)

SetHeight(height)

SetVisible(visible)

SetWidth(width)

AdjustControls

GetControlCollection

Inheritance

ASPxClientControlBase ASPxClientControl ASPxClientReportToolbar

See Also

ASPxClientDocumentViewer

GetToolbar

Methods

Cast(obj) Method

Converts the specified object to the current object’s type. This method is effective when you utilize the Client API IntelliSense feature provided by DevExpress.

Declaration

ts
static Cast(
    obj: any
): ASPxClientReportToolbar

Parameters

NameTypeDescription
objany

The client object to be type cast. Represents an instance of a DevExpress web control’s client object.

|

Returns

TypeDescription
ASPxClientReportToolbar

An ASPxClientReportToolbar object.

|

Remarks

The Cast method is implemented as a part of the JavaScript IntelliSense support for DevExpress ASP.NET controls and MVC extensions. So, using the Cast method is sensible when you intend to use IntelliSense during writing JavaScript code at design time with the help of the DevExpress client API.

A call to the Cast method (which is a static method) casts the specified client object to the ASPxClientReportToolbar type. As a result, the object’s type is now known and ASPxClientReportToolbar type specific IntelliSense information can be displayed for this client object, facilitating your coding.

The examples of this method application are as follows.

  • Converting the event source object passed to a client event’s handler:

  • Converting a client object accessed by using the value of the ClientInstanceName (or ID ) property. For instance, if a web control’s ClientInstanceName property is set to ‘ASPxClientReportToolbar1’, the object can be type cast in the following manner:

GetItemTemplateControl(name) Method

Provides access to the control template assigned for the specified menu item.

Declaration

ts
GetItemTemplateControl(
    name: string
): ASPxClientControl

Parameters

NameTypeDescription
namestring

A String value, specifying the menu item name.

|

Returns

TypeDescription
ASPxClientControl

A control.

|