Problem refreshing tree after node deletion

2 posts, 0 answers
  1. USI
    USI avatar
    26 posts
    Member since:
    Oct 2009

    Posted 30 May 2011 Link to this post


    I am facing a problem that I am unable to solve with the RadFileExplorer.

    Let's say I have the next hierarchy nodes (as ilustraded in the attachement):

    cms -> dir1 -> dir1.1

    I am using the context menu on the tree (the context menu is built by my code depending on some rules) to trigger an ajax request that delete the selected node. If I trigger an ajax request to delete node "dir1" (current directory is dir1), the node is deleted on server side without problem but when the content provider tries to fetch directories again, this process tries to fetch the deleted directory which causes an error because the directory does not exists anymore.

    I already tried to clear the nodes of TreeView right after my delete code but it does not solve the problem.

    Can someone help me with that problem?

    Best regards,
    Michael Pinheiro

  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 02 Jun 2011 Link to this post

    Hi Michael,

    We are not aware of such problem and you are the first one to report it. Do you experience this behavior using the standard functionality of RadFileExplorer? If you have implemented custom delete functionality, in order to be able to provide more to the point answer we will need to examine and debug the code locally. Could you please open a formal support ticket and provide fully runnable sample project reproducing the issue?

    In addition, RadFileExplorer heavily relies on ASP.NET client callbacks, which do not work very good with the MS Ajax framework, and this may be causing incorrect folder loading.

    Best wishes,
    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