Using RadUpload in Collapsed mode

2 posts, 1 answers
  1. Brian
    Brian avatar
    5 posts
    Member since:
    Jul 2008

    Posted 29 Jul 2008 Link to this post

    I am using the radUpload control but I want to provide my own GUI an Upload button and progress bar.   I put the control on my page and set the Visibility to Collapsed.  I configure the control, the service url, overwrite etc and call the ShowFileDialog() method on the control to browse for a file.  I call the StartUpload method to start the upload and show progress using the ProgressChanged event.

    When I run this with visibility=Collapsed I get a NullReferenceException.  If I run it with Visibility=Visible it works properly, except that the control is visible on my page.  I would like to be able to use the control with Visibility=Collapsed in order to supply my own GUI

  2. Answer
    Valio avatar
    102 posts
    Member since:
    Jun 2006

    Posted 29 Jul 2008 Link to this post

    Hi Brian,

    You have 2 options. You can redesign the control by modifying its ControlTemplate, so you modify the complete look and feel, OR you can  set the Opacity property of RadUpload to 0 and this way the control will not be visible. The second choice will be easier for you most probably.

    Best Regards,
    Valentin Stoychev
  3. DevCraft R3 2016 release webinar banner
Back to Top