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

Get Directory Structure off Network and Populate with MetaData

1 Answer 22 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Systems
Top achievements
Rank 1
Systems asked on 25 Oct 2012, 06:12 PM
Hello,

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
JB

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Oct 2012, 01:17 PM
Hello,

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,
Andrey
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.
Tags
TreeList
Asked by
Systems
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or