Display a message within the Kendo grid when it's empty

后端 未结 12 2184
栀梦
栀梦 2020-12-13 09:27

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.

F

12条回答
  •  隐瞒了意图╮
    2020-12-13 09:58

    Can't you do something like this -

    if(this.tbody.rows.length === 0) {
         alert('no records');
         return;
    }
    

    Or you are looking for something even cleaner something inbuilt in Kendo? I think, this is an issue still there in Kendo UI which hasn't been fixed yet See this - http://www.telerik.com/forums/empty-grid-norecords-template

提交回复
热议问题