Showing custom message in grid when there is no data binded

Hi Syncfusion Team,

Our requirement is to show a message 'No data available' when there is no data binded to the grid, even when columns are not binded.

I have attached the screenshot below for the requirement specified.

Please let me know how to achieve this.

Thanks,

Bhagyasri


1 Reply

SK Sujith Kumar Rajkumar Syncfusion Team March 24, 2022 11:58 AM UTC

Hi Bhagyasri, 
 
Greetings from Syncfusion support. 
 
You can achieve this requirement of customizing the empty Grid content by modifying the corresponding locale value in the Grid’s load event as demonstrated in the below code snippet, 
 
// Grid's load event handler 
onLoad() { 
    this.grid.localeObj.currentLocale.EmptyRecord = 'No data available'; 
} 
 
 
Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon