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

Using RadUpload in Collapsed mode

1 Answer 90 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 29 Jul 2008, 05:30 PM
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

Thanks,
Brian

1 Answer, 1 is accepted

Sort by
0
Accepted
Valio
Top achievements
Rank 1
answered on 29 Jul 2008, 05:47 PM
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
Telerik
Tags
Upload
Asked by
Brian
Top achievements
Rank 1
Answers by
Valio
Top achievements
Rank 1
Share this question
or