OK and Cancel Buttons cannot be customized
Hello,
Attachment: SfComboBox_b4890dbe.zip
I used Localization to customize displayed text on OK and Cancel Buttons. At runtime, the control does not display customized text.
I want replace "OK" by "D'accord" and "Cancel" by "Annuler". See attached picture. Can you help me please?
Regards
Attachment: SfComboBox_b4890dbe.zip
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
VR
Vijayalakshmi Roopkumar
Syncfusion Team
December 2, 2020 06:58 AM UTC
Hi Cosyspro,
Thank you for using Syncfusion Products.
We have checked your query and understand your requirement is to localize the Ok and Cancel button of SfComboBox. For this, you can localize the SfComboBox based on the
CurrentUICulture by using the resource files and by adding the name or value pairs in the Resource Designer of resx file. Code to set the current culture
|
//setting the current culture for localization
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
|
Set the desired value in Resx file according to the language used. For Ok and CancelButton as shown below:
Screenshot shows the Ok and Cancel button text are localized.
For more information about localization with SfComboBox , refer the following UG.
Similarly you can localize the desired text according your language preference. Please try this solution and let us know if it is helpful.
Regards,
Vijayalakshmi VR
Marked as answer
CO
Cosyspro
December 2, 2020 08:21 AM UTC
Hi Vijayalakshmi VR
Thank you for response. It solves my problem that was in Resx file where I used "OK" and "Cancel" Name instead of "OKButton" and "CancelButton" Name.
Please, it is possible to get all names used in Resx files ?
Regards
BR
Backia Raj Kanagaraj
Syncfusion Team
December 3, 2020 12:33 PM UTC
Hi Cosyspro,
Thanks for your update.
We have checked your requirement and found that, currently we have provided only three items for localize to customize the displayed value in SfComboBox control. Please refer the below image for resource file (.resx) of SfComboBox control.
|
|
Could you please let us know which control you want to localize the text. It will be helpful for us to analyzing your requirement and provide the solution at earliest.
Regards,
Backia Raj Kanagaraj
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
CO Cosyspro
- Dec 1, 2020 10:01 PM UTC
- Dec 3, 2020 12:33 PM UTC