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

Controls as EditorToolBase?

3 Answers 35 Views
Editor
This is a migrated thread and some comments may be shown as answers.
MCM Net
Top achievements
Rank 1
MCM Net asked on 16 Nov 2011, 03:17 PM
Hi Guys,

I'm trying to add a RadMenu to the RadEditors Tools. I want it to fit into an EditorToolGroup like the rest of the tools but noticed that it only accepts items that are from base class EditorToolBase.

Is it possible to have a control inherit from this to be able to add it to an EditorToolGroup?

In fact am I even on the right track or is there another way to do this?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Nov 2011, 04:26 PM
Hi Steven,

RadEditor does not offer the requested feature out-of-the box. Could you please explain what do you want to implement and if possible send a screenshot of it?
Do you want to place the menu control over the RadEditor's toolbar and execute the editor's commands (Bold, Italic, Underline, etc) from the menu items?

By the way have you tried by any chance the RibbonBar toolbar mode of RadEditor?


Best wishes,
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
MCM Net
Top achievements
Rank 1
answered on 17 Nov 2011, 02:37 PM
Hi,

I'm trying to build the "RadMenu" control into the editor along side the "B" "I" and "U" buttons as I would like the same functionality (expand, with nesting e.t.c) without having to completely build a custom one from scratch. The style of the drop downs don't really suit what I need and the menu is exactly what I was looking for.

I was hoping I could somehow build it into the editor just like any other tool, hoping there would be a work around or somehow getting the menu to inherit from "RadToolBase".

If it can't be done do you have any suggestions? I suppose I could put the image of a menu as an custom EditorTool and when clicked can instantiate an instance of the RadMenu and position it "absolutely" in the right place. It's a bit of hack though!
0
Rumen
Telerik team
answered on 17 Nov 2011, 03:01 PM
Hi Steven,

RadEditor does not offer a built-in integration with RadMenu, but if you would like you can integrate the menu with RadEditor using the RadEditor's client-side API. To execute a command of RadEditor you should execute the fire method. You can see a list of RadEditor commands in this article: Introduction to Toolbars.

For your convenience I've attached an integration example with the standalone RadRibbonbar control and RadEditor. You can replace the Ribbonbar with RadMenu and update the code.

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
Tags
Editor
Asked by
MCM Net
Top achievements
Rank 1
Answers by
Rumen
Telerik team
MCM Net
Top achievements
Rank 1
Share this question
or