Kendo UI Grid show no data text in to grid


if you want to show no data in to the grid when the grid datasource will be empty use this in to grid script 

  //No data in the grid show message  
               function gridDataBound(e) {  
                 var grid = e.sender;  
                 if (grid.dataSource.total() == 0) {  
                   var colCount = grid.columns.length;  
                   $(e.sender.wrapper)  
                     .find('tbody')  
                     .append('<tr class="kendo-data-row"><td colspan="' + colCount + '" class="no-data EmptyGrid">There is no data to show in the grid.</td></tr>');  
                 }  
               };  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report