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

Hide Working Progress Image and Delete button click Confirmation Box

3 Answers 92 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Naveen
Top achievements
Rank 1
Naveen asked on 07 Apr 2011, 02:42 PM
Hi,

I am using Telerik Rad File Explorer of new version.
It is cool.

I have few queries:-

1. I am using customized Working Progress Image.So I don't want to show the inbuilt working Image of Rad File Explorer for both Treeview and Gridview.
2. I  want to show an customized alert message that "You cannot delete this Folder" instead of the inbuilt confirmation message while selecting Root Node Folder(Virtual Path for Delete) and clicking the delete button/option.

Can you please give me suggestions in solving these?

Thanks,
Naveen.

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 11 Apr 2011, 10:58 AM
Hi Naveen,

Straight to the questions:
  1. RadFileExplorer does not offer the possibility to change the LoadingPanel's image out-of-the-box. However you can use the following CSS to override the default image:
    .raDiv
    {
        background-image: url('loading.gif') !important;
    }
    Please note that this will affect any additional RadAjaxLoading panel on the page.
  2. To achieve this functionality, you need to assign handlers to the RadFileExplorer delete button and context menus, cancel the events and manually call alert / confirm dialogs. For your convenience I have attached a sample page demonstrating this approach.

Best wishes,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Naveen
Top achievements
Rank 1
answered on 11 Apr 2011, 03:36 PM
Hi Dobromir ,

I have tried the below code. When I am trying to delete the root node by right clicking the root node and selecting the delete gives me a javascript error that args.set_cancel(true) is not a function.

Can you please help?

Thanks & Regards,
Naveen.
0
Dobromir
Telerik team
answered on 14 Apr 2011, 08:37 AM
Hi Naveen,

Please accept my sincere apologies for providing incorrect code. The problem is due to the fact that it is handling the wrong menu event - currently OnContextMenuClicked and the correct event that can be canceled is OnContextMenuClicking.

Please find attached modified sample page.

Regards,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start 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.

Tags
FileExplorer
Asked by
Naveen
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Naveen
Top achievements
Rank 1
Share this question
or