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

Text Format

2 Answers 65 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Iron
Iron
Veteran
David asked on 03 Apr 2020, 04:09 PM

I have two formatting issues represented in attachements

1) Name of the uploaded file and 'remove' label do not align

2) If file name is too long it drops 'remove' label to the next line. My preference would be to limit displayed file name to particular length

 

Thank you

 

 

2 Answers, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 07 Apr 2020, 03:53 PM

Hello David,

In order to change the default appearance of the AsyncUpload, you will need to override the default styles. In your other Forum post "Change gif image for loading panel" Attila shared all the tools you need to inspect the rendered HTML and debug it with the browser's Developer Tools.

Nevertheless, I will show you a basic example below:

<div style="width: 300px; border: 1px solid red;">
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"></telerik:RadAsyncUpload>
</div>

 

CSS override:

/* workaround for issue #1 */
html body .RadUpload .ruFileLI .ruFileWrap {
    padding: 0;
}
/* workaround forrissue #2 */
html body .RadAsyncUpload .ruFileLI .ruUploadProgress {
    white-space: nowrap;
    overflow: hidden;
    width: 200px;
    text-overflow: ellipsis;
    display: block;
}

 

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 09 Apr 2020, 03:29 PM
Thank you
Tags
AsyncUpload
Asked by
David
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Doncho
Telerik team
David
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or