Hide the RemoveButton

3 posts, 1 answers
  1. Nelson
    Nelson avatar
    62 posts
    Member since:
    Apr 2011

    Posted 23 Aug 2011 Link to this post

    Hi telerik,

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


    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>();


    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. Answer
    Alex Fidanov
    Alex Fidanov avatar
    636 posts

    Posted 24 Aug 2011 Link to this post

    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.

    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 >>

  3. DevCraft R3 2016 release webinar banner
  4. Nelson
    Nelson avatar
    62 posts
    Member since:
    Apr 2011

    Posted 25 Aug 2011 Link to this post

    Hi Alex,

    Thanks for the tip. It works good.

    Thank you.
Back to Top