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 01:51 AM

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. 
 
HTML 
<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> 
 
TS 
import { L10n, setCulture } from '@syncfusion/ej2-base'; 
setCulture('en-US'); 
 
L10n.load({ 
    '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? 
 
Regards, 
Vinoth Kumar S 



JL jose lara September 7, 2019 11:15 AM

Thx Vinoth. This works as expected. 


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

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


Loader.
Live Chat Icon For mobile
Up arrow icon