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

Hide the RemoveButton

2 Answers 49 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Nelson
Top achievements
Rank 1
Nelson asked on 23 Aug 2011, 10:32 AM
Hi telerik,

In your documentation about RadUpload, you describe that the control have a several buttons, like RemoveButton or the "X" button.

http://www.telerik.com/help/silverlight/radupload-visual-structure.html

However, if I want hide or disable this button it seems impossible. I did a search for all button in RadUpload like this:

IList<Button> List = this.RU.ChildrenOfType<Button>();

Or

cmdRemover = this.RU.ChildrenOfType<Button>().Where(b => b.Name.Equals("RemoveButton")).FirstOrDefault();

But doesn´t work, give me null, because is impossible localize RemoveButton.

There is some way to hide this button, without radical measures like customize all theme of RadUpload?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Fidanov
Telerik team
answered on 24 Aug 2011, 06:09 PM
Hi Nelson,

Have you tried setting the "IsDeleteEnabled" property of the RadUpload control? Setting it to false should hide the delete icon of the RadUploadItem.

Please let me know if you have further questions on this matter.

Greetings,
Alex Fidanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Nelson
Top achievements
Rank 1
answered on 25 Aug 2011, 09:13 AM
Hi Alex,

Thanks for the tip. It works good.

Thank you.
Tags
Upload
Asked by
Nelson
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Nelson
Top achievements
Rank 1
Share this question
or