ASPxClientWebDocumentViewer.UpdateLocalization(Dictionary<String, String>) Method
Updates the Web Document Viewer properties’ localization settings.
Namespace: DevExpress.XtraReports.Web.Scripts
Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
localization | Dictionary<String, String> | A dictionary containing the property names, along with their localized equivalents. |
Remarks
Use the UpdateLocalization method in the client-side ASPxClientWebDocumentViewer.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