From the code snippets I assume that the Grouping
and calculation of the Totals
are done with custom code. Telerik Reporting provides this functionality out-of-the-box.
You may set the raw (i.e. without explicit grouping or totals) listaInfoSales
for the report (or other data item
). Then you may Add Grouping
by the corresponding Field (IsSaleFree
for the Taxable and TaxFree items; VatPercentage
to group by VAT rates). The Totals can be set with Expressions
in the Group Footer section - we provide Aggregate Functions
, etc. The aggregate function would be executed over the scope of the Group, i.e. for a group of single VAT rate Sum
will total over the items with the corresponding VAT rate only.
You may check our Product Catalog
demo report that demonstrates how to use Grouping to structure your report. Our CSharp/VB demo reports can be found in (Telerik Reporting installation folder
VB) (e.g. C:\Program Files (x86)\Progress\Telerik Reporting R3 2018\Examples\CSharp
). The project is CSharp
. The report is ProductCatalog.cs(
in sub folder ProductCatalog
The corresponding Standalone designer report is in (Telerik Reporting installation folder
)\Report Designer\Examples - Product Catalog.trdp
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items