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
    Bozhidar avatar
    1096 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: 

    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,
    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. Telerik UI for ASP.NET Core is out
Back to Top