We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.


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. 
 
 
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 


Loader.
Live Chat Icon For mobile
Up arrow icon