Drag&Drop to RadUpload control

2 posts, 0 answers
  1. Mikael Adolfsson
    Mikael Adolfsson avatar
    1 posts
    Member since:
    Sep 2009

    Posted 10 Feb 2010 Link to this post


    I have a case where I would like the user to be able to drag files from the local computer and drop them onto the upload control.

    I can set AllowDrop="true" and bind to the Drop event and read the files, but how do I add them into the RadUpload control so it can handle the upload to the server? (I'm using SL4) Here is an example:

    <telerikInput:RadUpload AllowDrop="True" Drop="UploadControl_Drop" x:Name="UploadControl" ... /> 

    private void UploadControl_Drop(object sender, DragEventArgs e) 
        if (e.Data == null
        foreach (FileInfo file in (FileInfo[]) e.Data.GetData(DataFormats.FileDrop)) 
            using (FileStream sr = file.OpenRead()) 
                // the file can be read here. 
            // Could something like this be done (the code below does not work) 
            RadUploadSelectedFile item = new RadUploadSelectedFile(file); 

    Many thanks!
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 10 Feb 2010 Link to this post

    Hi Mikael Adolfsson,

    This feature is planned for implementation when SL4 is RTM. It is not available now.

    All the best,
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top