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

customize "record not found" message

Hi, by default , the list box in the dual list box component, has the label "record not found", if there are no records. How do I customize it? 

3 Replies

VK Vinoth Kumar Sundara Moorthy Syncfusion Team September 4, 2019 09:51 AM UTC

Hi Jose, 
Thank you for contacting Syncfusion support. 
We have checked your reported requirement “To customize the noRecordsTemplate” and it can be achievable by using locale property as like in the below code example. 
<ejs-listbox [dataSource]='dataA' [toolbarSettings]='toolbarSettings' height='330px' scope='#connected-list' [fields]='fields' [locale]='en-US'></ejs-listbox> 
<ejs-listbox id='connected-list' [dataSource]='dataB' height='330px' [fields]='fields' [locale]='en-US'></ejs-listbox> 
import { L10n, setCulture } from '@syncfusion/ej2-base'; 
    'en-US': { 
        'listbox': { 
            'noRecordsTemplate': "Your Custom Text", // provide your own text here 
For your convenience, we have prepared the sample based on our suggestion. Please find the sample in below link, 
Could you please check the above sample and get back to us, if you need any further assistance on this? 
Vinoth Kumar S 

JL jose lara September 7, 2019 07:15 PM UTC

Thx Vinoth. This works as expected. 

NP Narayanasamy Panneer Selvam Syncfusion Team September 9, 2019 09:59 AM UTC

Hi Jose, 
You are welcome. 
We're happy to hear that the reported issue is resolved at your end. 
Narayanasamy P.  

Live Chat Icon For mobile
Up arrow icon