Skip to main content

Localizing the Query Builder

The Query Builder supports the built-in localization mechanisms and allows you to fine-tune the localization programmatically by substituting particular localization strings.

Use Satellite Resource Assemblies

You can localize the Query Builder like other .NET applications using Satellite Resource Assemblies (libraries that contain translated resources).

Refer to Localizing ASP.NET Controls via Satellite Resource Assemblies for more information.

Substitute Localization Strings

You can manually substitute a particular localization string with a custom one by calling the UpdateLocalization(localization) method in the client-side CustomizeLocalization event. This method receives an object containing key-value pairs that define the specified strings’ localization.

<dx:ASPxQueryBuilder ID="ASPxQueryBuilder1" runat="server" 
    <ClientSideEvents Init="function(s, e) {
            'Save': 'Speichern',
            'Preview Results': 'Vorschau'
    }" />


Localization strings are case sensitive. A string is only translated if you specified it in the correct case.

You can use this approach in conjunction with Satellite Resource Assemblies.

Load JSON File with Localized Strings

To load the JSON file for localization, subscribe to the client-side CustomizeLocalization event as follows:

<html xmlns="">
<head runat="server">
    <script type="text/javascript" id="script">
        function CustomizeLocalization(s, e) {
    <form id="form1" runat="server">
            <dx:ASPxQueryBuilder ID="ASPxQueryBuilder1" runat="server">
                <ClientSideEvents CustomizeLocalization="CustomizeLocalization" />