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.
Model:
  [Key]  
     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);  
   })  

UI



vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link. http://www.microsoft.com/download...