Saturday, May 25, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  59] [ 1]  / answers: 1 / hits: 73741  / 10 Years ago, mon, may 5, 2014, 12:00:00

I'm trying to display a friendly message (like No records found, try again later) within the grid content, when there are no records in the database.

From what I've seen in the docs, there is currently no way of doing this for the grid content. It's only doable for the footer. You can see the example in this fiddle:

I've purposely misspelled the data route, in order to have an empty grid. To see it with content, simply comment / uncomment these lines:

transport: {
// read:

Is there a clean way of achieving this ?

More From » jquery


Good news- this option is available now:

you can set message via kendo template:

noRecords: {
template: No data available on current page. Current page is:

or via message option:

noRecords: true,
messages: {
noRecords: There is no data on current page

default text is No records available. when set noRecords: true only

[#71174] Friday, May 2, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 415
Total Questions: 117
Total Answers: 94

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago