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

How to load complete directory sctructure

6 Answers 334 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Indy
Top achievements
Rank 1
Indy asked on 28 Feb 2014, 10:28 AM
I am still new to Kendo UI, but so far my experience using the trial version in my ASP.NET MVC project has been positive.
Currently I'm trying to figure out how best to fetch a complete Directory structure (directory on the Server) and use TreeView to show the complete structure (like in Windows Explorer).

I have a Web API Service (still have to figure out this part) that will delivers the complete directory data to HTML client and gets loaded to TreeView finally.
So far after viewing the sample and reading the documentation, I'm still not clear on what approach to use in fetching the data and loading/binding the data to TreeView..
And this is most likely due to my limited knowledge of TreeView at this point.

Is there a more thorough example related to this topic?
I would appreciate any help or advice.

Thanks in advance.
Indy.

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 Mar 2014, 10:43 AM
Hi Indy,

I created a sample ASP.NET MVC application which shows how to populate the treeview on demand from directory structure.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Indy
Top achievements
Rank 1
answered on 04 Mar 2014, 04:14 PM
Hi Atanas.

Thank you so much for the sample ASP.NET MVC. It really helps.
If it is not too much, I need some pointer on how to accomplish the same thing from the client side (HTML).

Kind regards,
Indy
0
Atanas Korchev
Telerik team
answered on 04 Mar 2014, 04:37 PM
Hi Indy,

You can just get the output of the MVC wrapper. Inspect the generated output of the wrapper and use the JavaScript and HTML rendered by the treeview. It would work standalone.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mark
Top achievements
Rank 1
answered on 07 Jul 2015, 05:35 PM
How would you go about enabling users to download a file from the treeview and uploading a file to the treeview?
0
Shehraz
Top achievements
Rank 1
answered on 21 Nov 2016, 11:05 AM
I want to have window like directory structure in web. Can you also share code for that?
0
Veselin Tsvetanov
Telerik team
answered on 23 Nov 2016, 08:22 AM
Hello Shehraz,

Attached you will find the same Kendo MVC TreeView, placed in a Window.

Regards,
Veselin Tsvetanov
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Tags
TreeView
Asked by
Indy
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Indy
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Shehraz
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or