Controls as EditorToolBase?

4 posts, 0 answers
  1. MCM Net
    MCM Net avatar
    8 posts
    Member since:
    Dec 2008

    Posted 16 Nov 2011 Link to this post

    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!
  2. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 16 Nov 2011 Link to this post

    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
  3. MCM Net
    MCM Net avatar
    8 posts
    Member since:
    Dec 2008

    Posted 17 Nov 2011 Link to this post

    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!
  4. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 17 Nov 2011 Link to this post

    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
Back to Top