How to load complete directory sctructure

7 posts, 0 answers
  1. Indy
    Indy avatar
    5 posts
    Member since:
    Feb 2014

    Posted 28 Feb 2014 Link to this post

    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.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Mar 2014 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Indy
    Indy avatar
    5 posts
    Member since:
    Feb 2014

    Posted 04 Mar 2014 Link to this post

    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
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Mar 2014 Link to this post

    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!
  6. Mark
    Mark avatar
    3 posts
    Member since:
    Oct 2012

    Posted 07 Jul 2015 in reply to Atanas Korchev Link to this post

    How would you go about enabling users to download a file from the treeview and uploading a file to the treeview?
  7. Shehraz
    Shehraz avatar
    1 posts
    Member since:
    Nov 2016

    Posted 21 Nov in reply to Atanas Korchev Link to this post

    I want to have window like directory structure in web. Can you also share code for that?
  8. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    287 posts

    Posted 23 Nov Link to this post

    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.
Back to Top
Kendo UI is VS 2017 Ready