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

I have a grid with my own custom filter dialog.  I create the Query in my custom code. I set the SfGrid Query parameter from a function that returns a Syncfusion.Blazor.Data.Query.
This is all working well for numbers, strings, and Dates.  

The issue is that I have a grid with a data source from a gRPC call, which uses TimeStamps rather than DateTime. Google provides conversion methods FromDateTime and ToDateTime, but I don't see how to create a Syncfusion.Blazor.Data.Query that can filter by TimeStamp (or Enums) for the gRPC response. 


Is there a way for the
Syncfusion.Blazor.Data.Query to filter by TimeStamps or Enums?

 
Unfortunately, the response class is sealed, so extending the class with Proxy properties isn't an option.  I can handwrite a DTO, but that is problematic too for other reasons.


Simplified Code Example below...
 private List WhereFilters()

{

  var wheres = new List {

    new WhereFilter {Condition = "and", Field = "CreateTimeStamp", Operator ="GreaterThan", value = DateRangeStart},

    new WhereFilter {Condition = "and", Field = "CreateTimeStamp", Operator = "LessThan", value = DateRangeEnd},

};

return wheres;

}


private Query CustomQuery() {

var query = new Query();

foreach (var filter in WhereFilters())

    query = query.Where(filter);

return query;

}

//Then bind 

CustomQuery to SfGrid's Query param