Back to Devexpress

ReportDesignerClientSideEventsBuilder.CustomizeLocalization(String) Method

xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-reportdesigner-dot-reportdesignerclientsideeventsbuilder-dot-customizelocalization-x28-system-dot-string-x29.md

latest3.3 KB
Original Source

ReportDesignerClientSideEventsBuilder.CustomizeLocalization(String) Method

Sets the name of the JavaScript function or the entire code that will handle the Web Report Designer‘s CustomizeLocalization client-side event.

Namespace : DevExpress.AspNetCore.Reporting.ReportDesigner

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

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public ReportDesignerClientSideEventsBuilder CustomizeLocalization(
    string callback
)
vb
Public Function CustomizeLocalization(
    callback As String
) As ReportDesignerClientSideEventsBuilder

Parameters

NameTypeDescription
callbackString

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

|

Returns

TypeDescription
ReportDesignerClientSideEventsBuilder

A ReportDesignerClientSideEventsBuilder that can be used to further configure the Report Designer Client Side Events.

|

Remarks

The CustomizeLocalization event enables you to localize the Web Report Designer. Use the event argument’s LoadMessages method to load JSON files obtained from the DevExpress Localization Service.

html
<script type="text/javascript" id="script">
    function CustomizeLocalization(s, e) {
        e.LoadMessages($.get("/dx-analytics-core.de.json"))
        e.LoadMessages($.get("/dx-reporting.de.json"))
        e.LoadMessages($.get("/dx-rich.de.json"))
    } 
</script>

@(Html.DevExpress().ReportDesigner("reportDesigner")
    .ClientSideModelSettings(x => x.IncludeLocalization = false)
    .ClientSideEvents(x => x.CustomizeLocalization("CustomizeLocalization"))
    .Height("1000px")
    .Bind("Report"))

See the Localize ASP.NET Core Reporting Components topic for more information.

See Also

ReportDesignerClientSideEventsBuilder Class

ReportDesignerClientSideEventsBuilder Members

DevExpress.AspNetCore.Reporting.ReportDesigner Namespace