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

Upload - File name overlaps the Progress Indicator

3 Answers 202 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 21 Apr 2015, 05:02 PM

When the user selected file has quite a long file name, the name displays all the way to the end of the upload component and overlaps the progress indicator.

Can it be fixed so the file name automatically get truncated when it reaches the progress indicator?

 

 

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 22 Apr 2015, 11:42 AM

Hello Andrew,

The filename span element has a max-width property set via it's k-filename CSS class. You could assure this in the following example. If the max-width is too big for the current case, you could override it via CSS.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Andrew
Top achievements
Rank 1
answered on 22 Apr 2015, 05:51 PM

Thanks for the quick reply,

Unfortunately we do not directly control the size of an individual control on framework/css.

The size of the control can be different from one form to another. Also some forms can be resized by the user.

Can the filename and progress indicator be adjusted automatically in run-time?

 

0
Dimiter Madjarov
Telerik team
answered on 23 Apr 2015, 10:56 AM

Hello Andrew,

At the moment the width is not adjusted automatically. You could set the required file name width via jQuery.

$(".k-upload .k-filename").width(...);

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Andrew
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or