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

How can I change the remove link to a button in AsyncUpload

8 Answers 178 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 2
Gary asked on 17 Sep 2010, 07:11 PM
I am using a Rad AsyncUpload control and our customers do not like the Remove link that shows up in the list of upload files.  They want buttons instead.  Does anyone know how to transform these links to buttons that say remove.

Thanks,

GR Graham

8 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 17 Sep 2010, 07:47 PM
Hello Gary,

Try to apply this class style to you RadUpload control:

.normalRemoveButton .ruRemove
{
    background-position: 0px -23px !important;
    font-size: 11px !important;
    padding: 0 !important;
    width: 79px !important;
}

Apparently the remove linkbutton's are just image overlayed on top of a button. This styles just reverts it to the base button style used by the rest of the control, used by add/delete.

I hope that helps.
0
Gary
Top achievements
Rank 2
answered on 17 Sep 2010, 07:50 PM
Thank you Cori, 

I will give that a try and let you know when I have.  May be a couple of days tho - been pulled on to something else.

Gary
0
Gary
Top achievements
Rank 2
answered on 30 Sep 2010, 10:24 PM
Cori,

I tried adding that style and it does not seem to have made any difference.  I tried programatically adding it to the page head as in: 

 

Page.Header.Controls.Add(new LiteralControl( 
  
 @"<style type='text/css'
  
 /*RADAsyncUpload remove button*/ 
  
 .normalRemoveButton.ruRemove 
  
 
  
 background-position: 0px -23px !important; 
  
 font-size: 11px !important; 
  
 padding: 0 !important; 
  
 width: 79px !important; 
  
 
  
 </style>"));


 

and I also tried to add the style to our default css file .


neither way seemed to change the remove linkbutton to a standard button.  Any suggestions?

Thanks,


Gary 


 

 

0
Cori
Top achievements
Rank 2
answered on 01 Oct 2010, 03:26 PM
Hello Gary,

Did you apply the class on the RadUpload control? Like so:

<telerik:RadUpload ID="RadUpload1" runat="server" CssClass="normalRemoveButton">
</telerik:RadUpload>

I tried it myself and it works on my end.
0
Mukesh
Top achievements
Rank 1
answered on 07 Jan 2011, 01:58 PM
Hi Cori

I have also same issue with "RadAsyncUpload", there is no any impact on style of remove link, my code is as follows:
HTML
<telerik:RadAsyncUploadID="RadAsyncUpload1" runat="server" CssClass="normalRemoveButton">
</telerik:RadAsyncUpload>

CSS
.normalRemoveButton.ruRemove
{
    background-position: 0px -23px !important;
    font-size: 11px !important;
    padding: 0 !important;
    width: 79px !important;
}


Please suggest me the solution.


Thanks
Mukesh
0
Cori
Top achievements
Rank 2
answered on 07 Jan 2011, 03:02 PM
Hello Mukesh,

Try adding a space between the class names. Like so:

.normalRemoveButton .ruRemove

I hope that helps.
0
Mukesh
Top achievements
Rank 1
answered on 13 Jan 2011, 01:05 PM
Thanks Cori

This has solved my problem. Thank you so much..
0
james knight
Top achievements
Rank 1
answered on 21 Apr 2011, 01:41 AM
Thanks heaps Cori.. That works perfectly.
Tags
Upload (Obsolete)
Asked by
Gary
Top achievements
Rank 2
Answers by
Cori
Top achievements
Rank 2
Gary
Top achievements
Rank 2
Mukesh
Top achievements
Rank 1
james knight
Top achievements
Rank 1
Share this question
or