Hide Working Progress Image and Delete button click Confirmation Box

4 posts, 0 answers
  1. Naveen
    Naveen avatar
    8 posts
    Member since:
    Apr 2011

    Posted 07 Apr 2011 Link to this post

    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.
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 11 Apr 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Naveen
    Naveen avatar
    8 posts
    Member since:
    Apr 2011

    Posted 11 Apr 2011 Link to this post

    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.
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 14 Apr 2011 Link to this post

    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.

Back to Top