Upload control, HTML helper, change button label text

1 Answer 284 Views
Upload
Jon
Top achievements
Rank 1
Iron
Jon asked on 23 Dec 2021, 09:38 PM

I found this:  https://www.telerik.com/forums/how-to-change-button-label-text-for-tag-helper

Is there an HTML helper equivalent?  I'm trying to avoid tag helpers for consistency.

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 27 Dec 2021, 10:08 AM

Hello Jon,

To change the default text ("Select files") of the Upload button, use the Messages() method as per the example below:

@(Html.Kendo().Upload()
    .Name("FilesToUpload")
    .Messages( m => m.Select("Please select"))
)

Let me know if any other questions pop up.

 

Regards, Mihaela 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/.

Tags
Upload
Asked by
Jon
Top achievements
Rank 1
Iron
Answers by
Mihaela
Telerik team
Share this question
or