Back to Devexpress

DxDocumentViewerCallbacksBase<TModel, TEvents> Class

xtrareports-devexpress-dot-blazor-dot-reporting-dot-dxdocumentviewercallbacksbase-2.md

latest2.8 KB
Original Source

DxDocumentViewerCallbacksBase<TModel, TEvents> Class

Base class that specifies client-side event handler functions for the Web Document Viewer and Standalone Report Parameters Panel.

Namespace : DevExpress.Blazor.Reporting

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

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

Declaration

csharp
public class DxDocumentViewerCallbacksBase<TModel, TEvents> :
    SettingsComponent<TModel>
    where TModel : DocumentViewerCallbacksBaseModel<TEvents>, new()
vb
Public Class DxDocumentViewerCallbacksBase(Of TModel As {DocumentViewerCallbacksBaseModel(Of TEvents), New}, TEvents As WebDocumentViewerClientSideEventsBase)
    Inherits SettingsComponent(Of TModel)

Type Parameters

Name
TModel
TEvents

Remarks

The DxDocumentViewerCallbacks class contains properties that 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<TModel> DxDocumentViewerCallbacksBase<TModel, TEvents> DxDocumentViewerCallbacks

DxReportParametersPanelCallbacks

See Also

DxDocumentViewerCallbacksBase<TModel, TEvents> Members

DevExpress.Blazor.Reporting Namespace