When we filter a grid, it doesn't show the filtered amount in the footer (e.g. sum of the remaining five elements when filtering for 'Chevalier') but always to total unfiltered amount, so this component cannot be used in real-world scenarios in most cases.
Bother, You're my Brother!!!
You Just Made my Day!!!!
Love you From Pakistan , You Single Line of Code Sinpet Just helped me very Much...
Sorry for RIP English, A Very Very Little Junior Programmer...
BTW My Name is Owais, Love From PAKISTAN!!!!
In my blazor server .net8 app using
grid0.View.Sum() in the datagrid
causes "A second operation started on this context before a previous operation completed."
Any thoughts, without being sarcastic like Foizman?
In an inline edit datagrid with grid.View.Sum(x=>x.Amount) in the footer, if the grid is empty (has no records), the Add button does nothing. When I change it to sales.Sum(x=>x.Amount) it is OK.
So instead of
FooterTemplate>@sales.Sum(i => i.Amount))
I have to use
FooterTemplate>@GetAmountSum()
private double GetAmountSum()
{
if (sales.Count() == 0)
return 0;
else
return grid.View.Sum(i => i.AmountRead);
}