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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

List Box Localization

Thread ID:

Created:

Updated:

Platform:

Replies:

146664 Aug 13,2019 09:22 AM UTC Aug 19,2019 06:28 AM UTC jQuery 3
loading
Tags: ejListBox
Mladen Lakic
Asked On August 13, 2019 09:22 AM UTC


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.


Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On 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 


Mladen Lakic
Replied On August 15, 2019 06:05 AM UTC

Hi, 

It works, thanks a lot!

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon