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

Disable automatic expanding of tree node

1 Answer 47 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 01 Oct 2009, 08:42 PM
Is it possible to disable automatic expanding of a tree node?

When I select a folder that has children, the explorer automatically opens that tree. I don't want that to happen. I only want the tree to expand if the user explicitly clicks the "+" plus button.

Greg

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 06 Oct 2009, 04:37 PM
Hi Greg,

You can cancel expanding of the folders in the TreeView by using this approach :
  • attach a handler to the OnClientFolderChange event
  • then cancel the event by using this code :
    <script type="text/javascript"
        function OnClientFolderChange(oExplorer, args) 
        { 
            args.set_cancel(true); 
        } 
    </script> 

I hope this helps.

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
FileExplorer
Asked by
Greg
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or