Get Directory Structure off Network and Populate with MetaData

2 posts, 0 answers
  1. Systems
    Systems avatar
    5 posts
    Member since:
    Jun 2012

    Posted 25 Oct 2012 Link to this post


    I am looking at the basic samples for creating a TreeList of a directory structure and I see several examples but none that fall inline with my thinking. So perhaps someone here can set me straight with an example or explanation.

    In my TreeList I have the following columns I wanted bound. Name, Author, Size, Created, Modified.

    All the samples I saw used an xml file and other examples used a string array. These scenarios have me wondering perhaps incorrectly about my approach. I was thinking to create a custom object that inherits from IDictionary<string, string, String, DateTime, DateTime> or similiar. This way I could populate the object with both DirInfo as well as MetaData such as Author. In my mind I was thinking I could just then bind the ListView to this object.

    Is there a tutorial or sample that I can educate myself on a custom solution using the ASP .NET ListView?

    FYI .NET 4.0

    Thank You
  2. Andrey
    Andrey avatar
    836 posts

    Posted 30 Oct 2012 Link to this post


    If you want to display files and file information you could try to use our RadFileExplorer control which is designed especially for this purpose.

    About your other question, you could create a custom class that holds all the properties you want and then create a List<customObject> that will hold all the instances of the object. You could check this online demo application for more information to which datasources you could bind RadListView. The same information for RadTreeList is available here.

    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.
Back to Top