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

Get Dropped file from RadUploadDropPanel and upload through the Telerik Upload control (in separate control - Radwindow)

1 Answer 62 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Edward Pauley
Top achievements
Rank 1
Edward Pauley asked on 22 Feb 2012, 04:48 PM
Hi,
I have a RadUploadDropPanel and RadUpload control was located in 2 separate RadWindow, so i can't use Binding method like RadUpload="{Binding ElementName=rUpload}" in RadUploadDropPanel control
So is there any way to do this in codebehind?

Anyone can help me?
Thank you

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Feb 2012, 01:49 PM
Hello Edward,

 Yes, this could be achieved in code behind. Please check out the attached project where the RadUpload is located in the MainPage and the DropPanel is in RadWindow.

private void RadUploadDropPanel1_Loaded(object sender, RoutedEventArgs e)
       {
           (sender as RadUploadDropPanel).RadUpload = App.Current.RootVisual.ChildrenOfType<RadUpload>().First();
       }
Greetings,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Upload
Asked by
Edward Pauley
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or