Add Nodes From A Directory

2 posts, 0 answers
  1. Corey
    Corey avatar
    9 posts
    Member since:
    Mar 2012

    Posted 12 Mar 2012 Link to this post

    I am trying to create a folder system for files in a directory. Any way to populate nodes without any connection with a database? Also If i give it a directory is there any way to include the folders and the files inside of those folders?
  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 14 Mar 2012 Link to this post

    Hi Corey,

    You can create the TreeView programmatically from code behind, like demonstrated in the following help article:
    http://www.telerik.com/help/aspnet-ajax/treeview-nodes-working-server.html 

    To create the directory structure, just go through the folders and create a RadTreeNode for each one and add it to the RadTreeNode (or RadTreeView for the root) that corresponds to the parent folder.
     
    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top