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!>
Thanks for joining our community and helping improve Syncfusion products!
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.
{
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