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

Upload MVC hide upload status

5 Answers 417 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tomas
Top achievements
Rank 1
Tomas asked on 22 Oct 2013, 12:40 PM
I am using Upload MVC in our application and file list is hidden by default in our app.  But Upload still show upload status below the upload button. How to hide the status data?

<strong class="k-upload-status k-upload-status-total">Done<span class="k-icon k-warning">uploaded</span></strong>

5 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 22 Oct 2013, 03:12 PM
Hello Tomas,


To hide the "Done" status, you could add the following CSS styles to the page.
E.g.
.k-upload .k-upload-status-total
{
    visibility: hidden;
}

I wish you a great day!

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
Rajesh
Top achievements
Rank 1
answered on 14 Dec 2014, 10:17 AM
How can I display errors in the kendo-ui-upload dialog. I am supporting a bulk import features and I could potentially have several lines of warning or error messages even on successful upload of a csv. Is there a way to display these on the k-upload window ?
0
Dimiter Madjarov
Telerik team
answered on 15 Dec 2014, 09:24 AM
Hello Rajesh,


You could bind to the success or error events, open the window in the event handlers and set the returned errors as content.

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
madhuri
Top achievements
Rank 1
answered on 28 Aug 2020, 02:19 PM
How to remove the border around @(Html.Kendo().Upload() button that appears when the upload is completed?
0
Ivan Danchev
Telerik team
answered on 01 Sep 2020, 01:32 PM

Hello Madhuri,

When a file is uploaded the k-state-focused is applied to the "Select files..." button. It comes with its own styles, thus the border changes after uploading a file. To keep the border the same, you can use a CSS rule to override the styles applied to the k-state-focused class:

.k-upload .k-upload-button.k-state-focused {
  border-radius: 4px;
  border-color: #bbb;
  box-shadow: none;
}

This rule is for the Default less theme, so if you are using a different one, the border-color should be adjusted accordingly.

Regards,
Ivan Danchev
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Upload
Asked by
Tomas
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Rajesh
Top achievements
Rank 1
madhuri
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or