Did we ever decide, implement, the possibility of filtering on a sub level with in XTree? (That also recalculate any =SUB grand totals) I have a feeling it just opens a can of worms, a brain freeze, like how do we know what level to filter, top row, sub level , what sub level etc etc and is it really worth while. A customer asks (again) so thought ill just check i've not missed anything.
I think you summed up the problems, which center on how to identify which items to include in the filtering. In a multi-select tree, I guess it would be possible to first select a block of items and add a checkbox to the filter dialog to only include selected items. But that really wouldn't have anything to do with multi-level, since you could select items spanning multiple levels, or even non-contiguous ones.
It seems that the situation would be so situation dependent that maybe the only practical approach would be at the application level, probably via a regular context menu. Although I suppose one possible enhancement would be to use the built-in filter dialogs, but with an option to pass the information back to the application for processing. I'm not sure how we'd set that option though, since clearly it woiuldn't make any sense to the user, and it's not so clear that you'd want to set it globally for all the columns.
I like Jack's suggestion of a right-click triggering a coldef popup menu. Perhaps the application could add a "Filter" option which could send the request back to XTREE to filter on that sub-level. It would require 2 clicks instead of one, but even if the application did the filtering it would require a filter option with then some sort of dialog of selections. Or setup some sort of macro at the header level of xtree that would catch a right click event and auto open the xtree filter logic.
I could imagine an option on the context menu to filter the current branch only, or maybe the current level only. But I'm not sure it would very clear to the user what was meant by those options.
Well straight up column filtering is available at the column header. Rt-click knows if you are in a sub-level, maybe the verbiage for the popup could be sub-level filter. And right Steve, if you can't figure it out maybe you shouldn't use it!