Custom "error message" in kendo grid

1 Answer 199 Views
Grid
Rosie
Top achievements
Rank 1
Rosie asked on 16 Nov 2021, 01:18 PM
Hello, 

I was trying to create an error message in the kendo grid and I want the error message to appear inside the grid area, for example in place of  "No records available " text. 
Also, I would like to have the ability to style it (for example red background).

The requirement is to show custom content over the grid data, even if no data is provided.

1 Answer, 1 is accepted

Sort by
1
Accepted
Hetali
Telerik team
answered on 16 Nov 2021, 09:58 PM

Hello Rosie,

To change the "No records available" text, use the noRecords property in the CustomMessagesComponent and use the class ".k-grid-norecords" to add custom styling.

To show the custom content over the Grid data, use the Kendo UI Notification to show the error message. We have a dedicated article to align the notifications to the containers.

Please take a look at this StackBlitz example demonstrating the above mentioned approaches.

Let me know if this information helps or if I can further assist you.

Regards,
Hetali
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Rosie
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Share this question
or