Sunday, May 25, 2014

Kendo UI web Grid how to set default null values to a grid when adding new row

In your Kendo UI web grid model binding just use '?' allow null in your model class property. Which property you want to use in your grid as nullable.
     public System.Guid? CompanyId { get; set; }  
     public System.String CompanyName { get; set; }  
     public System.String CompanyAddress { get; set; }  

Kendo Grid :

  .Columns(columns =>  
     columns.Bound(p => p.CompanyId).Hidden();  
     columns.Bound(p => p.CompanyName).Width(200);  
     columns.Bound(p => p.CompanyAddress).Width(300);  
     columns.Command(command => { command.Edit(); command.Destroy();}).Width(172);  


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 ...