i have added this to my code:
this.GridObj?.ClearFiltering();
if (Service.Filter.SelectedGroup != null)
{
var classificationIds = Service.Classifications
.Where(e => e.ClassificationGroupId == Service.Filter.SelectedGroup.ClassificationGroupId)
.Select(e => e.ClassificationId).ToList();
this.GridObj?.FilterByColumn(
nameof(Transaction.ClassificationId),
"equal",
classificationIds);
}
this.GridObj?.Refresh();
now when this code part is run i get the following script errors on the page:
Cannot read property 'toString' of undefined
TypeError: Cannot read property 'toString' of undefined
at t.setFormatForFlColumn (https://localhost:5000/_content/Syncfusion.Blazor/scripts/grids-ec5227.min.js:1:457484)
at t.applyColumnFormat (https://localhost:5000/_content/Syncfusion.Blazor/scripts/grids-ec5227.min.js:1:448791)
at t.filterByColumn (https://localhost:5000/_content/Syncfusion.Blazor/scripts/grids-ec5227.min.js:1:448118)
at r.filterByColumn (https://localhost:5000/_content/Syncfusion.Blazor/scripts/grids-ec5227.min.js:1:282585)
at https://localhost:5000/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:164159
at u (https://localhost:5000/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:6710)
at Generator._invoke (https://localhost:5000/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:6463)
at Generator.forEach.e.<computed> [as next] (https://localhost:5000/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:7067)
at r (https://localhost:5000/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:3019)
at s (https://localhost:5000/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:3230)
Grid Column config looks like this:
<GridColumn Field="@nameof(Transaction.ClassificationId)"
HeaderText="@nameof(Transaction.ClassificationId)"
Format="d"
EditType="EditType.NumericEdit" />
the Transaction.ClassificationId is of type long