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

[Solved] Fixed toolbar

1 Answer 6 Views
RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sebastian Tegel
Top achievements
Rank 1
Sebastian Tegel asked on 14 Oct 2008, 08:01 AM
Hi!

I'm wondering if there are any way of making the toolbar fixed.
By fixed I mean that I have defined the ToolsFile.xml the way I want it with two different rows of different tools and I would like the toolbar to always being shown as it is defined in the xml.

I've set the Width to 100%.

The problem that I've seen is that when the layout is being wider, all of the tools in the toolbar has a tendency to end up on a single line if there is room for it.

Using RadEditorMoss v 5.2.2.

ToolsFile.xml:
<root> 
  <tools name="MossTools1">  
    <tool name="AjaxSpellCheck" /> 
    <tool name="FindAndReplace" /> 
    <tool separator="true" /> 
    <tool name="Cut" shortcut="CTRL+X" /> 
    <tool name="Paste" shortcut="CTRL+V" /> 
    <tool name="PastePlainText" /> 
    <tool separator="true" /> 
    <tool name="Undo" shortcut="CTRL+Z" /> 
    <tool name="Redo" shortcut="CTRL+Y" /> 
    <tool separator="true" /> 
    <tool name="MOSSInsertTable" /> 
    <tool name="SetTableProperties" /> 
    <tool name="ImageManager" /> 
    <tool separator="true" /> 
    <tool name="InsertOrderedList" /> 
    <tool name="InsertUnorderedList" /> 
  </tools> 
  <tools name="MossTools2">  
    <tool name="FormatBlock" /> 
    <tool separator="true" /> 
    <tool name="Bold" shortcut="CTRL+B" /> 
    <tool name="Italic" shortcut="CTRL+I" /> 
    <tool separator="true" /> 
    <tool name="Superscript" /> 
    <tool name="Subscript" /> 
    <tool separator="true" /> 
    <tool name="MOSSLinkManager" shortcut="CTRL+K" /> 
    <tool name="Unlink" shortcut="CTRL+U" /> 
    <tool name="InsertHorizontalRule" /> 
  </tools> 
  <contextMenus> 
    <contextMenu forElement="*">  
      <tool name="Cut"/>  
      <tool name="Copy"/>  
      <tool name="Paste"/>  
    </contextMenu> 
  </contextMenus> 
</root> 

I hope you understand the issue, othwise let me know and I'll try and support some more information.

Best regards

Sebastian

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 15 Oct 2008, 02:30 PM
Hi Sebastian,

Note that, you can manually set what the ToolBar's width using the editor's ToolsWidth property e.g.
<property name="ToolsWidth ">500px</property>

Hence, the toolbar's width will be always the same.

I hope this helps.

All the best,
George
the Telerik team

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