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

Custom messages for multiple upload components

2 Answers 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 04 Feb 2021, 02:15 PM

Hi,

I have multiple Upload components on a single page. First is for single file and second is with multiple files upload enabled. I need custom messages for "upload.select". One will be "Select single file" and other "Select multiple files" Is this possible?

2 Answers, 1 is accepted

Sort by
0
Accepted
Silviya
Telerik team
answered on 05 Feb 2021, 10:00 AM

Hi Matej,

You can if you define two separate Localization providers and pass different messages for each of them. Check the demo here:

https://stackblitz.com/edit/react-vxvsk5-6uzhzj?file=app%2Fmain.jsx

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

0
Matej
Top achievements
Rank 1
Veteran
answered on 05 Feb 2021, 11:15 AM
Awesome, thank you.
Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Silviya
Telerik team
Matej
Top achievements
Rank 1
Veteran
Share this question
or