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

RadEditor.set_toolbarMode trouble

1 Answer 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
QualiWareUA
Top achievements
Rank 1
QualiWareUA asked on 24 Jul 2008, 02:16 PM
Hi, guys.
I've met the next problem:
in .aspx file for RadEditor control property "ToolbarMode" is setted as ToolbarMode="ShowOnFocus".

In FullScreen mode I want to set toolbar mode to be shown all the time (like ToolbarMode="Default").

I'm using the OnClientCommandExecuted="onClientCommandExecuted" handler:
function onClientCommandExecuted(editor, args) 
    if (args.get_commandName() == "ToggleScreenMode"
    { 
        if (editor.isFullScreen()) 
        { 
            setTimeout(function () { editor.set_toolbarMode(undefined); }, 500); 
            // also was tried: 
            // editor.set_toolbarMode(undefined); 
            // editor.set_toolbarMode(null); 
            // editor.set_toolbarMode(0); 
            // editor.set_toolbarMode(-1); 
        } 
        else 
        { 
            setTimeout(function () { editor.set_toolbarMode(8); }, 500); 
        } 
    } 
But unfortunately it does not help.

Was something linked with that article: article done?



1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 25 Jul 2008, 08:49 AM
Hi Alex,

The desired functionality is not provided out-of-the box and currently cannot be achieved. Please, use the default Toolbar mode.


Have a great weekend,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
QualiWareUA
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or