Adding a button to the RadEditor ImageManager

Thread is closed for posting
3 posts, 1 answers
  1. Paul Herzberg
    Paul Herzberg avatar
    20 posts
    Member since:
    Jun 2010

    Posted 15 Nov 2010 Link to this post

    Hello,

    I'm trying to add a button to the Image Manager of the RadEditor that opens a window with a Image CMS url and then refreshes the directory content.

    Better would actually be to override the Upload button. I tried this, but got two windows as "args.set_cancel(true);" wasn't recognised.

    function toolbarClicked(toolbar, args) {
            var buttonValue = args.get_item().get_value();
            if (buttonValue == 'Upload')
            {
               var wnd = window.radopen("./ComplexControls/Editor/EditorDialogs/Img.aspx", null);
               wnd.setSize(400, 400);
                   args.set_cancel(true);
            }
        }
     
    I would appreciate any help you could give me in this matter.

    Thank you.

    Paul Herzberg
  2. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 17 Nov 2010 Link to this post

    Hi Paul,

    I already answered your support ticket on the subject. For convenience I will post my answer here as well.

    The Toolbar's OnClientItemClicked event cannot be canceled because the click is already processed. However, you can attach handler to the OnClientItemClicking event to achieve the required functionality. Also, you can call the RadFileExplorer's refresh() method to update the folder listing.

    Sincerely yours,
    Dobromir
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul Herzberg
    Paul Herzberg avatar
    20 posts
    Member since:
    Jun 2010

    Posted 17 Nov 2010 Link to this post

    Sorry for the double posting, I wasn't sure where to put the problem.

    Your answer solved it perfectly, thank you.

    Paul Herzberg
Back to Top