Back to Devexpress

DxDocumentViewerCallbacks Class

xtrareports-devexpress-dot-blazor-dot-reporting-91b320c9.md

latest2.9 KB
Original Source

DxDocumentViewerCallbacks Class

Specifies client-side event handler functions for the Web Document Viewer. See DxDocumentViewerCallbacks Members for the complete list of events.

Namespace : DevExpress.Blazor.Reporting

Assembly : DevExpress.Blazor.Reporting.v25.2.JSBasedControls.Common.dll

NuGet Package : DevExpress.Blazor.Reporting.JSBasedControls.Common

Declaration

csharp
public class DxDocumentViewerCallbacks :
    DxDocumentViewerCallbacksBase<DocumentViewerCallbacksModel, WebDocumentViewerClientSideEvents>
vb
Public Class DxDocumentViewerCallbacks
    Inherits DxDocumentViewerCallbacksBase(Of DocumentViewerCallbacksModel, WebDocumentViewerClientSideEvents)

Remarks

Properties of the DxDocumentViewerCallbacks class allow you to specify JavaScript handler functions for client-side events.

View Example: Blazor Reporting - UI Customization API

Follow these steps to customize the Blazor Document Viewer using its client-side API:

  1. Place your JavaScript code in a separate file in the wwwroot folder. Use the window object to create a namespace for your code.

  2. Use the DxResourceManager.RegisterScripts() method to register the corresponding script:

  3. Specify the JavaScript function names as handlers of the appropriate events in the DxDocumentViewerCallbacks component:

Inheritance

Object ComponentBase DevExpress.Blazor.Reporting.Base.SettingsComponent<DevExpress.Blazor.Reporting.DocumentViewerCallbacksModel> DxDocumentViewerCallbacksBase<DevExpress.Blazor.Reporting.DocumentViewerCallbacksModel, DevExpress.AspNetCore.Reporting.WebDocumentViewer.Native.DataContracts.WebDocumentViewerClientSideEvents> DxDocumentViewerCallbacks

See Also

DxDocumentViewerCallbacks Members

Handle Client-Side Events in the Blazor Document Viewer

DevExpress.Blazor.Reporting Namespace