New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Setting the NoRecords Template from the Controller

Environment

ProductProgress® Telerik® UI for ASP.NET Core Grid
Product Version2019.1.220

Description

How can I set the NoRecords template message to content from the controller?

Solution

  1. Use a Kendo UI Template and pass the text by using the ViewData setting of the controller.
  2. Configure the NoRecords TemplateID of the Grid with the ID of the Kendo UI Template.
css
<style>
    .mystyle {
        color: red;
        font-size: 26px;
    }
</style>

More ASP.NET Core Grid Resources

See Also