changing appearance of upload control

1 Answer 91 Views
Templates Upload
Benjamin
Top achievements
Rank 2
Iron
Iron
Veteran
Benjamin asked on 19 Dec 2022, 03:57 AM

would like to check if it is possible to style the upload control to as follows

 

when no file selected

after file selected

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 21 Dec 2022, 11:09 AM

Hello, Benjamin,

The required layout cannot be achieved out-of-the-box. Perhaps you should be able to use custom logic to append() the + icon, and should be able to hide it in the select event. The "after file selected" part could be configured through the template configuration.

Let me know if the information above would be helpful.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Benjamin
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 21 Dec 2022, 02:16 PM

Hi. Thanks for the response. Can i check is there any sample on how to append the + using custom logic, as i cant seems to find any.
Nikolay
Telerik team
commented on 26 Dec 2022, 08:37 AM

Hi Benjamin,

Here is the logic you can use to add the plus icon and update the button text:

     $(document).ready(function () {
          var upload = $("#files").kendoUpload().data("kendoUpload");
          upload.wrapper.find(".k-upload-button").find("span").text("Supporting Documents");
          upload.wrapper.find(".k-upload-button").append("<a class='k-icon k-i-plus-circle'></a>");
        });

Dojo demo: https://dojo.telerik.com/uciLotUY

Please let me know if you have any questions.

Regards,

Nikolay

Tags
Templates Upload
Asked by
Benjamin
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Martin
Telerik team
Share this question
or