Completed
Last Updated: 01 Oct 2015 11:06 by ADMIN
ADMIN
Ianko
Created on: 09 Sep 2015 10:29
Category: UI for ASP.NET AJAX
Type: Bug Report
0
Missing localization label in StyleBuilder dialog
There is a missing label in the Box tab (Width and Height options) in the StyleBuilder dialog.

You can dynamically change the label by following this example:

<telerik:RadEditor runat="server" ID="RadEditor1" OnClientCommandExecuted="OnClientCommandExecuted">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="StyleBuilder" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:RadEditor>

<script>
    function OnClientCommandExecuted(sender, args) {
        var command = args.get_commandName();

        if (command === "StyleBuilder") {
            var dialog = sender.get_dialogOpener()._dialogContainers[command];

            dialog.add_pageLoad(fixSectionName);
        }
    }

    function fixSectionName(sender, args) {
        var dialogWin = sender.get_contentFrame().contentWindow;
        var label = dialogWin.$telerik.$(".reStyleBuilderBoxSize").find("legend");
        label.html("Dimensions");
    }
</script>
0 comments