API to provide list of files ?

2 posts, 0 answers
  1. Michael
    Michael avatar
    19 posts
    Member since:
    Aug 2014

    Posted 29 Jun 2015 Link to this post


    I'm currently working on a dialog to upload files to our cloud service. Since we just acquired a Telerik license, I thought I'll go through the controls, and see what we can take advantage of.

    The CloudUpload dialog seems to be exactly what I want. The only caveat, is that our workflow permits for opening a File Open dialog, as well as drag/drop onto a grid. Is it possible for the CloudUpload control to accept a list of files, hence negate the need for the browse button ?


  2. Petar Marchev
    Petar Marchev avatar
    1029 posts

    Posted 01 Jul 2015 Link to this post

    Hello Michael,

    The cloud upload control is divided into a few separate entities that handle different tasks.

    1. The RadCloudUpload control which allows for the user to select files and operate on the selected files (it's like a command center that tells the files to get uploaded or cancel the uploads).

    2. The provider which handles the uploading process (the upload to a specific storage drive).

    3. The RadCloudUploadList which simply displays the list of uploads and the RadCloudUploadListItem which visualizes info for an upload (progress, file size ...).

    4. The CloudUploadFile which is the entity that wraps a certain file and exposes an API for commanding that file upload.

    The RadCloudUpload does not have methods that would allow you to add files in code, so I do not think that you can use this one. You can use the rest of the elements to get what you require. You need to create a CloudUploadFile for each file you need to upload. You can place these items in a collection and feed a RadCloudUploadList in order for the uploads to get displayed. You can then (if needed) write your own 'command center' where you can have two buttons (Upload All, Cancel All) or whatever you need - simply iterate the CloudUploadFile items in the collection and tell them what to do (StartUpload, RequestCancel ...).

    I hope this information suffices. Let us know if you need more information.

    Petar Marchev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top