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

"No records to display" Template

How to change "No Records to display" template ?

1 Reply

RS Renjith Singh Rajendran Syncfusion Team 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. 



Loader.
Up arrow icon