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

Hiding Upload and Cancel button

11 Answers 202 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jakub Wilk
Top achievements
Rank 2
Jakub Wilk asked on 24 Nov 2009, 03:36 PM

Hi,

 

I need to have access to UploadButton in silverlight RadUpload control.

In my scenerio upload is started by clicking LinkButton on aspx page.

I need to hide Upload and Cancel buttons in silverlight RadUpload control so users can only click my LinkButton.

How can I do that?

I try RadUpload1.FindName("uploadButton") but this returns null.

 

Help please...

Sebastian

11 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 26 Nov 2009, 09:52 AM
Hello Jakub,

I have posted an answer to your support ticket. Have a look at it and if you have additional questions, let me know.

Best wishes,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paul
Top achievements
Rank 1
answered on 03 Dec 2009, 01:48 PM
What was the answer to this.

I have a similar scenerio where I have a RadWindow in Silverlight similar to a new email message I want them to be able to select attachments using the upload control but do not want the upload and cancel buttons. Instead I want to fire the upload off when they click a send button.

Is this possible.
0
Ivan
Telerik team
answered on 04 Dec 2009, 11:02 AM
Hi Paul,

Below is a copy of the original message:
 
  uploadandcancelbuttonvisibility.zip

You can retrieve the Upload and Cancell buttons by using VisualTreeHelper:


var root = VisualTreeHelper.GetChild(upload1, 0) as FrameworkElement;
  
var uploadButton = root.FindName("UploadButton") as FrameworkElement;
var cancelButton = root.FindName("CancelButton") as FrameworkElement;
  
uploadButton.Visibility = Visibility.Collapsed;
cancelButton.Visibility = Visibility.Collapsed;

I am attaching my test project for further reference. Have a look at it and let me know if you have additional questions.

Kind regards,
Kiril Stanoev
the Telerik team


Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
omair hussain
Top achievements
Rank 1
answered on 26 Jan 2010, 09:52 PM
Hello, I see that you have toggle button to hide/show upload/cancel buttons. How can I hide them without toggling any where.
Thank you.
0
Ivan
Telerik team
answered on 29 Jan 2010, 10:50 AM
Hi Omair,
 
Thank you for your interest in the RadUpload control.

Current release of the Radupload do not expose properties related to its buttons' visibility. Because of this you should care about them.


Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jai
Top achievements
Rank 1
answered on 12 Jul 2011, 12:21 PM
Hi,

I am using Radupload control. and i am using following assembles in my project reference
Telerik.Windows.Controls - 2010.2.924.1040
Telerik.Windows.Controls.Input - 2010.2.924.1040


 Do you guys have the Radupload expose properties related to buttons' visibility in above those versions of assembly? Because the same i want to hide upload and cancel button.


Thanks,
--Jai
0
Alex Fidanov
Telerik team
answered on 12 Jul 2011, 12:31 PM
Hello Jai,

For version 2010.2.924.1040 there is nothing exposed to control the visibility of the buttons. In 2011 release, we switched to using Visual State Manager and the visibility of the buttons is controled with visual states. You can restyle the control and modify the states.

Best wishes,
Alex Fidanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Jai
Top achievements
Rank 1
answered on 12 Jul 2011, 12:35 PM
Hi,

Can you please provide more detail with an example that about Visual State Manager and the visibility of the buttons is controled with visual states. You can restyle the control and modify the states ?

Thanks,
--Jai


0
Alex Fidanov
Telerik team
answered on 14 Jul 2011, 12:42 PM
Hi Jai,

If you modify the style in Expression Blend of the RadUpload control, you will see several VisualStates in Upload's control template. For example, the state when there are selected files looks like this:



These animations control the visibility of all the buttons in the upload control. You should set the value of the discrete frames to Collapsed on the buttons that you do not want to be visible in all of the states and apply the style to the upload control.

Greetings,
Alex Fidanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mariusz
Top achievements
Rank 1
answered on 30 Sep 2013, 12:33 PM
Is this still the only way of managing buttons visibility?
0
Pavel R. Pavlov
Telerik team
answered on 03 Oct 2013, 06:32 AM
Hello Rafal,

The buttons of the RadUpload control are part of its default template. Hence, in order to customize the default look of that control, you need to extract and edit the template. You can find more information about extracting template here.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Upload
Asked by
Jakub Wilk
Top achievements
Rank 2
Answers by
Kiril Stanoev
Telerik team
Paul
Top achievements
Rank 1
Ivan
Telerik team
omair hussain
Top achievements
Rank 1
Jai
Top achievements
Rank 1
Alex Fidanov
Telerik team
Mariusz
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or