Hello,
I have a grid setup with multiple groups. The groups are year, month and day. By default, all groups should be closed except the one of todays date, that one should be expanded.
I've got the code to retrieve the GridGroupHeaderItem object for the group which matches todays date (year-month-day), and I can expand that. But I need all of the above groups (year, month) to be expanded as well. What is a good way of traversing up the group hierarchy to expand all groups above? I would like to make this function recursive so I can use it again some other time, so it ideally shouldn't be fixed to a number of parent levels.
I have a grid setup with multiple groups. The groups are year, month and day. By default, all groups should be closed except the one of todays date, that one should be expanded.
I've got the code to retrieve the GridGroupHeaderItem object for the group which matches todays date (year-month-day), and I can expand that. But I need all of the above groups (year, month) to be expanded as well. What is a good way of traversing up the group hierarchy to expand all groups above? I would like to make this function recursive so I can use it again some other time, so it ideally shouldn't be fixed to a number of parent levels.