Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table: Determine totals row (SummaryRow) using filter? #3776

Open
true-perfect-code opened this issue Apr 3, 2024 · 1 comment
Open

Table: Determine totals row (SummaryRow) using filter? #3776

true-perfect-code opened this issue Apr 3, 2024 · 1 comment

Comments

@true-perfect-code
Copy link

Dear Ant-Team,

Is it somehow possible to use only the filtered entries in the total in a table in which you use totals rows?

Currently I calculate the sum in a table by displaying the sum of the entire list displayed in the table using "SummaryRow" (e.g. list.Sum(...)). The problem occurs when the user sets filters, then of course my sum is no longer correct.

Thanks
pc

@ElderJames
Copy link
Member

Hello @true-perfect-code , you can use ITable.GetQueryModel() to get the filtered rows and calculate the sum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants