This is a migrated thread and some comments may be shown as answers.

Ability to display "no records" message in grid area?

2 Answers 547 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 18 Dec 2014, 08:29 PM
Hi, I'm converting over a grid from Telerik for AJAX to Kendo.  I was wondering if there is a way to display a message like "No records to display" in the grid's data area instead of hidden down at bottom in pager section.  See screenshot for desired functionality.

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 22 Dec 2014, 12:08 PM
Hi Bob,

This scenario is not supported out-of-the-box by Kendo UI Grid, however it can be achieved using additional code. As a possible approach I would suggest to attach a handler to the Grid dataBound event, check the data length and prepend an additional HTML element which contains the message. For your convenience here is a basic example which demonstrates the suggested approach in action.

Regards,
Iliana Nikolova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Musashi
Top achievements
Rank 1
answered on 14 Sep 2016, 05:35 PM

Version I'm using (2016.2.607) has config option "norecords", and displays this in the grid's data area.

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-noRecords

Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Musashi
Top achievements
Rank 1
Share this question
or