Tuesday, March 31, 2015

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>');  
                 }  
               };  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...