Script List Control Grouping Functionality

In the programming implementation of list grouping, I’ve encountered two points that affect development efficiency and functional adaptability. I’d like to share these situations and corresponding optimization suggestions for the team’s reference:

  1. The list grouping feature currently doesn’t support one-click collapse or expand. According to the official documentation (Control.GetGroupById(0...100).expanded = true/false), I need to iterate through all group IDs to complete the operation one by one. This requires adding extra code, and I also have to create a dedicated global variable to store these group IDs, which increases some unnecessary code logic.(eg: Control.Expanded = true/false)

  2. The group name of the list grouping cannot be dynamically updated based on the group ID. I actually mentioned this point in my previous feedback post, and I hope to emphasize it again due to its practical business value. Admittedly, there is a workaround: we can count the data first before grouping and then splice the result into the group name. However, this method undoubtedly adds an extra loop. In fact, the number of rows in each group can be counted in the grouping process, and then the group names can be updated uniformly—this would be a more efficient approach. For example, in the scenarios I’m currently dealing with, it’s necessary to dynamically count the number of rows in the group and append this statistical result to the end of the group name, which the current function hasn’t yet supported.(eg: DialogListGroup.UpdateGroupName('Level5 ('+ 35 +')'))

I sincerely hope the relevant team can consider these optimization directions. If these functions can be improved, it will greatly enhance the usability of the list grouping feature in actual development scenarios.

For #1, do you mean you want a way to expand / collapse all groups at once?

Yes, I hope there can be such a convenient way to expand or collapse all groups at once, which can greatly improve operational efficiency.

We'll add that in the next beta. You'll be able to do something like:
ctrl.ExpandGroupByName("*", false);
to collapse all groups at once.

For your second question, you can already change the group name by setting the value of the name property. For example,
ctrl.GetGroupById(1).name="new group name";

1 Like