QueryBuilderClientSideEventsBuilder.CustomizeLocalization(String) Method
Specifies the JavaScript handler function for the client-side CustomizeLocalization event.
Namespace: DevExpress.AspNetCore.Reporting.QueryBuilder
Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
Parameters
Name | Type | Description |
---|---|---|
callback | String | The name of a JavaScript function or the entire JavaScript function code that handles the CustomizeLocalization event. |
Returns
Type | Description |
---|---|
QueryBuilderClientSideEventsBuilder | A QueryBuilderClientSideEventsBuilder that can be used in method chaining. |
Remarks
The CustomizeLocalization event enables you to load localization resources and localize the Web Query Builder. Use the event argument’s LoadMessages method to load JSON files obtained from the DevExpress Localization Service.
The following code replaces the Query Builder texts with German translations:
@{ var queryBuilder = Html.DevExpress().QueryBuilder("webQueryBuilder")
.Height("400px")
.Bind(Model)
.ClientSideModelSettings(x => x.IncludeLocalization = false)
.ClientSideEvents(configure =>
{ configure.CustomizeLocalization("CustomizeLocalization"); }); ; }
@queryBuilder