Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Object reference not set to an instance of an object.


public override async Task ReadAsync(DataManagerRequest dm, string key = null) { 

 try { IEnumerable datasource = null; 

 datasource = await this.apiService.Client .GetFromJsonAsync>("/api/SampleCtor/GetAllCtorRecords"); 

 var count = datasource.Count(); 

 datasource = DataOperations.Execute(datasource, dm); 

 return Task.FromResult(dm.RequiresCounts ? new DataResult() { Result = datasource, Count = count } : (object)datasource); } 

 catch (Exception ex) { return base.ReadAsync(dm, key); } }