The requested page is not available for the requested platform. You are viewing the content for Default platform.

WebDocumentViewerClientSideEventsBuilder.CustomizeLocalization(String) Method

Sets the name of the JavaScript function or the entire code that will handle the Web Document Viewer's CustomizeLocalization client-side event.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

Assembly: DevExpress.AspNetCore.Reporting.v18.2.dll


public WebDocumentViewerClientSideEventsBuilder CustomizeLocalization(
    string callback
Public Function CustomizeLocalization(
    callback As String
) As WebDocumentViewerClientSideEventsBuilder


Name Type Description
callback String

The name of a JavaScript function or the entire JavaScript function code used to handle the CustomizeLocalization event.


Type Description

A WebDocumentViewerClientSideEventsBuilder that can be used to further configure the Document Viewer Client Side Events.


The CustomizeLocalization event enables you to customize the Web Document Viewer's localization strings. When implementing a handling function, use the ClientDocumentViewer object passed as a parameter. This object exposes the UpdateLocalization method that allows you to substitute particular localization strings with custom ones, as shown below.

    var documentViewer = Html.DevExpress().WebDocumentViewer("webDocumentViewer1")
        .ClientSideEvents(configure => { configure.CustomizeLocalization("customizeLocalization"); });
See Also