List Box Localization
Hello,
I wanna change the following text ('No Records Found') in List Box control.
I've tried do something like that, but it doesn't work:
locale_de = {
'de-DE': {
'dropdowns': {
'noRecordsTemplate': 'Keine Ergebnisse'
},
'drop-down-list': {
'noRecordsTemplate': 'Keine Ergebnisse'
},
'combo-box': {
'noRecordsTemplate': 'Keine Ergebnisse'
},
'drop-down-list': {
'noRecordsTemplate': 'Keine Ergebnisse'
},
'list-box': {
'noRecordsTemplate': 'Keine Ergebnisse'
}
}
}
/* DE */
ej.base.L10n.load(locale_de);
ej.base.setCulture("de-DE");
/* Initialization */
listBox1 = new ej.dropdowns.ListBox({
locale: 'de-DE',
dataSource: data,
fields: { text: 'displayName', value: 'id'},
selectionSettings: { showCheckbox: true },
toolbarSettings: { items: ['moveTo', 'moveFrom', 'moveAllTo', 'moveAllFrom']},
height: "300px"
});
listBox1.appendTo("#available_employees");
Can you help me to solve it? I would be very appreciate.
SIGN IN To post a reply.
3 Replies
VK
Vinoth Kumar Sundara Moorthy
Syncfusion Team
August 14, 2019 09:51 AM UTC
Hi Mladen,
Thank you for contacting Syncfusion support.
We have checked your reported issue and found that you have mentioned the ListBox with hyphen (list-box) which caused this issue. So, we would suggest you use “listbox” text as like in the below code example to avoid this issue.
Code Snippet
|
'de-DE': {
'listbox': {
'noRecordsTemplate': "Keine Ergebnisse",
}
} |
For your convenience, we have prepared the sample based on our suggestion. Please find the link below.
Sample Link: https://stackblitz.com/edit/yivjfr?file=index.html
Could you please check the above sample and get back to us, if you need any further assistance on this?
Regards,
Vinoth Kumar S
ML
Mladen Lakic
August 15, 2019 06:05 AM UTC
Hi,
It works, thanks a lot!
VK
Vinoth Kumar Sundara Moorthy
Syncfusion Team
August 19, 2019 06:28 AM UTC
Hi Mladen,
You are most welcome. Please feel free to contact us if you need any further assistance on Syncfusion components.
Regards,
Vinoth Kumar S
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
ML Mladen Lakic
- Aug 13, 2019 09:22 AM UTC
- Aug 19, 2019 06:28 AM UTC