Completed
Last Updated: 18 May 2021 06:07 by ADMIN
Stefan
Created on: 12 Apr 2021 13:24
Category: Dialog
Type: Feature Request
0
It I possible to customize the Dialog component (e.g Yes/No instead of OK/Cancel)?
It I possible to customize the Dialog component (e.g Yes/No instead of OK/Cancel)?
7 comments
ADMIN
Marin Bratanov
Posted on: 18 May 2021 06:07

Hello Shannon,

Please review the sample projects we've made and also the MSDN documentation about localization in Blazor - the very first snippets in the WebAssembly section explain what you need to add so you can change cultures at runtime.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Shannon
Posted on: 17 May 2021 19:23

Ah!  Thanks.  That worked.  I can't change cultures, but I guess that is ok.  If I try to change I get this error:

 

blazor.webassembly.js:1 System.InvalidOperationException: Blazor detected a change in the application's culture that is not supported with the current project configuration. To change culture dynamically during startup, set <BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData> in the application's project file.

ADMIN
Marin Bratanov
Posted on: 17 May 2021 18:45

Hello Shannon,

The dialogs were added in a recent release and if you don't update your localization files regularly, you won't find the keys for the new components we constantly add. Even if you don't find them, you can always add them, however.

Please try to get localization working and update the localization source with the latest one as described in the article and in the individual sample projects readme files.

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

Shannon
Posted on: 17 May 2021 18:37
No I have not been able to find the two keys.  I read through the localization page, but I don't understand how it pertains.  I'm sure it does, but I can't see it.
ADMIN
Marin Bratanov
Posted on: 17 May 2021 18:28

Hello Shannon,

Have you been able to locate the two keys I mentioned and tried to change their values? What is the issue you are facing with that?

Regards,
Marin Bratanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Shannon
Posted on: 17 May 2021 13:20
Can you show how to use localization to change the button names?
ADMIN
Marin Bratanov
Posted on: 12 Apr 2021 16:49

Hi Stefan,

Yes, this is possible through localization. The keys for those buttons are "Dialog_Ok" and "Dialog_Cancel".

 

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