ASPxClientReportDesigner.CustomizeLocalization Event
Enables you to customize the Web Report Designer’s localization strings.
Namespace: DevExpress.XtraReports.Web.Scripts
Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll
Declaration
public event ASPxClientReportDesignerCustomizeLocalizationEventHandler CustomizeLocalization
Remarks
Use the client-side ASPxClientReportDesigner.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({ 'Properties': 'Eigenschaften', 'Data Source': 'Datenquelle', 'Data Member': 'Datenelement' }); } </script> <dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server" > <ClientSideEvents CustomizeLocalization="customizeLocalization" /> </dx:ASPxReportDesigner>
ASP.NET MVC
@Html.DevExpress().ReportDesigner(settings => { settings.Name = "ReportDesigner"; settings.ClientSideEvents.CustomizeLocalization = "function(s) { " + "s.UpdateLocalization({"+ "'Properties': 'Eigenschaften',"+ "'Data Source': 'Datenquelle',"+ "'Data Member': 'Datenelement'});}"; }).Bind(new XtraReport()).GetHtml()
See Also