New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Setting the NoRecords Template from the Controller
Environment
Product | Progress® Telerik® UI for ASP.NET Core Grid |
Product Version | 2019.1.220 |
Description
How can I set the NoRecords
template message to content from the controller?
Solution
- Use a Kendo UI Template and pass the text by using the
ViewData
setting of the controller. - 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
- Overview of the Kendo UI Templates
- Official Microsoft Documentation of ViewData
- API Reference of Kendo.Mvc.UI.Fluent.GridNoRecordsSettingsBuilder
- Client-Side API Reference of the Grid for ASP.NET Core
- Server-Side API Reference of the Grid for ASP.NET Core
- Telerik UI for ASP.NET Core Breaking Changes
- Telerik UI for ASP.NET Core Knowledge Base