How to dsplay directory contents and be able to download the indivcual files

3 posts, 0 answers
  1. stuart
    stuart avatar
    8 posts
    Member since:
    Mar 2008

    Posted 02 Jan 2009 Link to this post


    I am designing an area of our employee site that would enable employees to download MS Office documents (XLS, DOC, etc). the directory containing the documents has two subdirectories (d:\website\aspnet\employee\downloads\employee_sched\ and d:\website\aspnet\employee\downloads\doctor_sched\). I would like the content of these directories to dynamically populate the RAD TreeView control as many files are added and removed daily. From the look of some of the other posts it can be done using AJAX Load-on-Demand Directory and/or FileSystemDataSource class but I have yet to figure out how to do so. Is there a tutorial or example code that does function?

    THanks for your help.

  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 05 Jan 2009 Link to this post

    Hi stuart,

    The fastest way is to use the RadFileExplorer control. You can subscribe to the OnClientItemClick event and define its handler as follows:

    <script type="text/javascript"
    function OnClientItemClickHandler(sender, eventArgs);     

    I hope this helps.

    Sincerely yours,
    Veselin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. stuart
    stuart avatar
    8 posts
    Member since:
    Mar 2008

    Posted 06 Jan 2009 Link to this post

    Exactly what I needed. Thanks for your prompt reply and fantastic control set!

Back to Top