I know how to create a tool bar within the code behind class. However, I cannot find information how to add a new toolbar on a new line. The on-line help provides code how to create a toolbar with the following code.
EditorToolGroup main = new EditorToolGroup()
RadEditor.Tools.Add(main);
EditorTool spell = new EditorTool();
spell.Name = "AjaxSpellCheck";
spell.ShortCut = "CTRL+S";
main.Tools.Add(spell);
EditorTool print = new EditorTool();
print.Name = "Print";
print.ShortCut = "CTRL+P";
main.Tools.Add(print);
The issue I have is where and how I develop code which will create a new Toolbar under the first one on the Telerik RadEditor server control. For instance, I would like to have the following tool bar under the first one created above:
EditorToolGroup second = new EditorToolGroup()
RadEditor.Tools.Add(second);
EditorTool fontName= new EditorTool();
fontName.Name = "FontName";
fontName.ShortCut = "CTRL+F";
second.Tools.Add(spell);
EditorTool bold= new EditorTool();
bold.Name = "Bold";
bold.ShortCut = "CTRL+B";
second.Tools.Add(print);
In short, am I missing something?
EditorToolGroup main = new EditorToolGroup()
RadEditor.Tools.Add(main);
EditorTool spell = new EditorTool();
spell.Name = "AjaxSpellCheck";
spell.ShortCut = "CTRL+S";
main.Tools.Add(spell);
EditorTool print = new EditorTool();
print.Name = "Print";
print.ShortCut = "CTRL+P";
main.Tools.Add(print);
The issue I have is where and how I develop code which will create a new Toolbar under the first one on the Telerik RadEditor server control. For instance, I would like to have the following tool bar under the first one created above:
EditorToolGroup second = new EditorToolGroup()
RadEditor.Tools.Add(second);
EditorTool fontName= new EditorTool();
fontName.Name = "FontName";
fontName.ShortCut = "CTRL+F";
second.Tools.Add(spell);
EditorTool bold= new EditorTool();
bold.Name = "Bold";
bold.ShortCut = "CTRL+B";
second.Tools.Add(print);
In short, am I missing something?
