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

ASPxClientWebDocumentViewer.CustomizeLocalization Event

Enables you to customize the Web Document Viewer's localization strings.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll

Declaration

public event ASPxClientWebDocumentViewerCustomizeLocalizationEventHandler CustomizeLocalization
Public Event CustomizeLocalization As ASPxClientWebDocumentViewerCustomizeLocalizationEventHandler

Remarks

Use the client-side ASPxClientWebDocumentViewer.UpdateLocalization method in the CustomizeLocalization event to manually substitute particular localization strings with custom ones as shown below.

  • ASP.NET WebForms

    <script type="text/javascript" id="script"> 
        function customizeLocalization(s) {
            s.UpdateLocalization({
                'Search': 'Suche',
                'Search result': 'Suchergebnisse',
                'Next Page' : 'Nächste Seite', // A tooltip text.
                'Export Options' : 'Exportoptionen'
            });
        }
    </script> 
    
    <dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server">
        <ClientSideEvents CustomizeLocalization="customizeLocalization"/>
    </dx:ASPxWebDocumentViewer>
    
  • ASP.NET MVC

    @Html.DevExpress().WebDocumentViewer(settings => {
        settings.Name = "WebDocumentViewer";
        settings.ClientSideEvents.CustomizeLocalization = "function(s) { " +
        "s.UpdateLocalization({" +
            "'Search' : 'Suche'," +
            "'Search result' : 'Suchergebnisse'," +
            "'Next Page': 'Nächste Seite'," + // A tooltip text.
            "'Export Options' : 'Exportoptionen'});}";
    }).Bind(new DXWebApplication.XtraReport1()).GetHtml()
    
See Also