Skip to content

Example of Empty Record Template in ASP.NET MVC Data Grid Control

This sample demonstrates the usage of the empty record template in the DataGrid. In this sample, we show a custom image in the place of the default no-record message typically shown by the DataGrid.

The DataGrid provides a way to use a custom content when it has no data to present. The emptyRecordTemplate property accepts either a string or an HTML element ID value, which will be used as the template when there’s no data.