Grid Aggregate Sum only current page data NOT all data
I face the problem when I enable paging in Grid. The aggregation only group and sum data at the current page, not all records in the data source ie. total
I used blazor version 17.3.18.
Regards,
MaTaO
Here is the screenshots base on Syncfusion.
page 1
As you can see the group named "Condiments" has a total of 11 items in the data source that stay on a different page but the information in the aggregate template is the value of its page not the value of data source aggregation. What I want is an option to aggregate from the data source, not the page. Then display on the aggregation template. This might relate to the post: https://www.syncfusion.com/forums/148119/grouping-and-aggregate-display-group-key-in-ltgroupfootertemplategt due to I want to access to the key property in aggregation template in order to calculate from outside component then bind to the template with the mapping aggregation key.
I read the release note but did not find the related feature has been released.
Thanks
Vignesh Natarajan.
|
|
|
<EjsGrid DataSource="@Orders" AllowPaging="true" AllowGrouping="true" Height="400">
<GridGroupSettings DisablePageWiseAggregates="true" Columns="@(new string[] {"CustomerID"})"></GridGroupSettings>
. . . . . . . .. . .
</EjsGrid> |
Hi Vignesh, is this still broken? I have this exact same need (using version 19.2.0.60) and setting DisablePageWiseAggregates="true" has no effect, I still see the totals per displayed page (kind of makes this aggregate feature useless).
Or is there a different way to accomplish this with the curre
Hello SyncFusion Team,
I'm experiencing the same issue with aggregation when using grouping in my Grid as the users mentioned above. However, LazyLoad is not satisfactory for me as I have a large amount of data. I tried to enable "DisablePageWiseAggregates", but it doesn't seem to work. Could I please ask for further support on this matter?
When I have page size on 50 rows and make a grouping with Lazy Load it groups the data well. But after I want to show the details of group, which is bigger than the page size, the aggregate doesn't show at all.
Printscreen of OK and NOK behaviout attached (when number of records in group < page size -> OK)
Thank you, Jakub
Attachment: lazyloadGroupAgg_6e3c8135.zip
Hi Jakub,
Before proceeding with the reporting issue, we
require some additional clarification from your end. Please share the below
details to proceed further at our end.
- Please specify whether you are using local or remote data. If you are using remote data, which adaptor have you used?.
- Share with us the NuGet version you have used.
- Share us a grid code snippet with the model class.
- If possible, share with us a simple, reproducible issue.
Above-requested details will be very helpful in
validating the reported query at our end and providing a solution as early as
possible.
Regards,
Naveen P
Hello Naveen,
I'm sorry for a late reply, had a lot of work which has to be done ASAP.
I use NuGet packages version 20.4.0.44 right now (going to upgrade to 21.1.38 next week)
In attachment there can be found almost the whole code of component with pseudonymized database access, there should be seen everything you asked for (data type, classes, settings of grid and also other functions).
There are the printscreen of different settings of "DisablePageWiseAggregates" as well on our data.
Thanks a lot for you help
Best regards
Jakub
Attachment: 20230404PageWiseAgg_e1e6ba74.zip
Hi Jakcub
We would like to inform you that when you set the disablePagewiseAggregate setting to true,the aggregate values can be determined based on the current page. When you use disablePagewiseAggregate, you can show the total grouped count in the groupCaption. This only works for Remote data services. We would also want to inform you that the latest version of disablePagewiseAggregate is lazyLoadGrouping. We also prepared a simple sample in lazyloading; please give the following details about the issue you encountered when using Lazyloading so that we may validate it further at our end.
- Share us the entire Grid code snippet with loazyloading along with model class.
- Share us the video demonstration of the issue in provided sample.
- If possible share us an simple issue reproduceable sample or try to modify the above mentioned sample in pervious update
- If you have any screenshots or visuals for you requirement that might help us understand better, please send those along too.
The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible
Regards,
Naveen Palanivel
Attachment: Blazor_0410__lazyLoad_dc955ba6.zip
- 12 Replies
- 7 Participants
-
MA MaTaO
- Nov 1, 2019 03:57 AM UTC
- Apr 15, 2023 04:17 AM UTC