How to change the default "No records found" message

Hello,

Is it possible to change the default value for an empty ListBox?

I have would like to update from "No records found" to "Drag items here"

I see there is a NoRecordsTemplate and NoData Template but unfortunately they dont update the text. Am I doing something wrong?


    <SfListBox ID="xAxisList"
                                   @ref="XListBox"
                                   TValue="string[]"
                                   DataSource="@selectedXFields"
                                   TItem="@ListData"
                                   AllowDragAndDrop=@allowXAxisDrag
                                   NoRecordsTemplate="Drag items here"
                                   Scope="combined-list">
                            <ListBoxFieldSettings Text="Name" Value="Code" />


Cheers!


3 Replies 1 reply marked as answer

MV Madhan Venkateshan Syncfusion Team June 18, 2020 10:37 AM UTC

Hi Vincent, 
 
Good day to you. 
 
You can use the localization to override the text, to get started with Localization in Blazor application, you have to familiarize yourself with the Localization and its architecture in the framework. Refer to the below resources to know more about Localization in the Blazor framework. Please find the below documentation link  
  
  
For your convenience we have prepared a sample, please find the below sample link 
 
 
Regards, 
Madhan V 


Marked as answer

DT Dev Team October 26, 2021 12:33 AM UTC

this looks like a very old thread but I figured out the correct answer (maybe new since this was posted)

you need to make a template in the listboxtemplates item

  <ListBoxTemplates TItem="Roles">

                    <NoRecordsTemplate>

                        <div>

                            user has no Roles

                        </div>

                    </NoRecordsTemplate>

                </ListBoxTemplates>



JS Janakiraman Sakthivel Syncfusion Team October 27, 2021 03:54 AM UTC

Hi Martin Dempsey, 
 
Thanks for the update. 
 
Regards,  
Janakiraman S.  


Loader.
Up arrow icon