This is a migrated thread and some comments may be shown as answers.

StatusBar is showing on custom dialog when showStatusbar is set to false

5 Answers 51 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 05 Feb 2013, 12:23 PM
Hi,

I am using a rad editor with custom dialogs based on your demo: http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx

I am calling: showExternalDialog() and I give showStatusbar = false,
but I still get the status bar in my radwindow.

here is my code:

    Telerik.Web.UI.Editor.CommandList["LinkManager"] = function(commandName, editor, args) {
        var elem = editor.getSelectedElement(); //returns the selected element.

        if (elem.tagName == "A") {
            editor.selectElement(elem);
            argument = elem;
        }
        else {
            //remove links if present from the current selection - because of JS error thrown in IE
            editor.fire("Unlink");

            //remove Unlink command from the undo/redo list
            var commandsManager = editor.get_commandsManager();
            var commandIndex = commandsManager.getCommandsToUndo().length - 1;
            commandsManager.removeCommandAt(commandIndex);

            var content = editor.getSelectionHtml();

            var link = editor.get_document().createElement("A");

            link.innerHTML = content;
            argument = link;
        }

        var myCallbackFunction = function(sender, args) {
            editor.pasteHtml(String.format("<a href={0}>{1}</a> ", args.href, args.name))
        }

        editor.showExternalDialog(
            'InsertLink.aspx',
            argument,
            400,
            220,
            myCallbackFunction,
            null,
            'Insert Link',
            true,
            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
            false,
            true);
    };

Do you have any idea why?
Is there any workaround to prevent the status bar from showing?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Feb 2013, 04:37 PM
Hello,

I tested the last two parameters of the showExternalDialog method and verified that they work as expected. You can see my test in the following video: http://screencast.com/t/5ktvYaCks.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Covertix
Top achievements
Rank 1
answered on 11 Feb 2013, 09:08 AM
Hi Rumen,

I am using Telerik.Web.UI version 2008.02.0826.35
Do you support showStatusbar = false  in this version?
I wrote exactly your code, but I still get the status bar...



0
Rumen
Telerik team
answered on 11 Feb 2013, 02:14 PM
Hi,

This version does not support the modern browsers and it is recommended to upgrade to ensure that every feature of the control functions properly.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Covertix
Top achievements
Rank 1
answered on 13 Feb 2013, 01:10 PM
Thanks.

I just added getRadWindow().set_visibleStatusbar(false); inside initDialog(), but it doesn't look that good.
Do you have any other workaround which can help to solve the issue?

I am using rad window a lot in my application, and I never use a status bar, so I can't use it only for this window.
It will be very helpful!

Thank you very much.
0
Rumen
Telerik team
answered on 14 Feb 2013, 03:49 PM
Hi,

You can inspect the status bar HTML with Firebug and override the class applied to it by adding display:none !important.  For example:

.rwStatusbar { display: none !important; }


Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Covertix
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Covertix
Top achievements
Rank 1
Share this question
or