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

"No records to display" Template

Thread ID:

Created:

Updated:

Platform:

Replies:

148320 Oct 15,2019 01:32 PM UTC Oct 16,2019 07:25 AM UTC Blazor 1
loading
Tags: Grid
Mr Andrey Voronov
Asked On October 15, 2019 01:32 PM UTC

How to change "No Records to display" template ?

Renjith Singh Rajendran [Syncfusion]
Replied On October 16, 2019 07:25 AM UTC

Hi Mr Andrey, 
  
Thanks for contacting Syncfusion support. 
  
You can achieve this requirement by using the “Localization feature of Grid”. We suggest you to define the translations in a json file and then load the translation file to achieve this requirement.  
 
We have prepared a sample based on this requirement, please download the sample form the link below, 
 
[culture.json] 
 
{ 
  "culture": { 
    "grid": { 
      "EmptyRecord": "No records available in Grid" 
    }       
  } 
} 
 
[Index.razor] 
 
@code{ 
    [Inject] 
    IJSRuntime JsRuntime { get; set; } 
    ... 
    protected override void OnAfterRender(bool firstRender) 
    { 
        this.JsRuntime.Ejs().LoadLocaleData("wwwroot/culture.json").SetCulture("culture"); 
    } 
}  
  
 
Please get back to us if you need further assistance. 
  
Regards, 
Renjith Singh Rajendran. 



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