tonytomov / jqGrid

jQuery grid plugin

Home Page:www.trirand.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unconsistente behaivor on `showSummaryOnHide`

PaolaRuby opened this issue · comments

Hi, i think that i find a bug

When i am using grouping with subgroups and groupSummary:[true,true], showSummaryOnHide:true, groupCollapse:true,
it shows all groups summaries, but when you click on one group for open and close again, it shows only the last summary,
i think that the last behaivor is the right one, because all the subgroups summaries at the same time is confusing

Using: jqGrid JS - v5.7.0
image
DEMO: https://jsfiddle.net/w3gcd2zf/

Hello Paola,

Thanks for the description of the problem and the demo.
I can look at this next week. I this is a show stopper for you, please let me know.

Best Regards,
Tony

Thanks for answer

No problem for me, i'm just testing

Hello,

I have play with this and really find the behavior strange.

IMHO the true behavior is to show the summary grouping details always when the group is collapsed.

This come from the nature of the option showSummaryOnHide. This mean that the summary column(s) shlod be show instead if the grouping is collapsed.

I have do a fix where when the group is collapsed the summary show anyway.

One more bug is fixed - In case of showSummaryOnHide false when you expand the main group the summary is not shown - it is shown only if you click on the last subgroup (which IMHO is wrong)

but when you click on one group for open and close again, it shows only the last summary,
i think that the last behaivor is the right one, because all the subgroups summaries at the same time is confusing

Maybe can be a new feature showSummaryOnColapse, when the behavior shows the sumary of last group colapsed and visible, instead of all groups and subgroups summaries, because when you have more subgroups, looks more confusing, and there is not a way to set a custom message for each subgroup

This is the final result of this fix
image

Thanks for answer