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

Adding a button to the RadEditor ImageManager

2 Answers 83 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Paul Herzberg
Top achievements
Rank 1
Paul Herzberg asked on 15 Nov 2010, 09:46 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 17 Nov 2010, 02:28 PM
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.
0
Paul Herzberg
Top achievements
Rank 1
answered on 17 Nov 2010, 02:56 PM
Sorry for the double posting, I wasn't sure where to put the problem.

Your answer solved it perfectly, thank you.

Paul Herzberg
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Paul Herzberg
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Paul Herzberg
Top achievements
Rank 1
Share this question
or