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

2 posts, 0 answers
  1. Edward Pauley
    Edward Pauley avatar
    48 posts
    Member since:
    May 2010

    Posted 22 Feb 2012 Link to this post

    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
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 27 Feb 2012 Link to this post

    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();
    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 >>
Back to Top