Hello,
setting e.Cancel to true in ActiveGroupChanging does not always prevent the selected group to change:
while setting a breakpoint in ActiveGroupChanging to debug (to inspect e.Cancel value), everything is working correctly ... :)
the ActiveGroupChanged event is canceled correctly!
as soon as I remove the breakpoint I can switch groups to whatever I like, console output is always "true" for e.Cancel.
any help?
Blue
Hello Blue,
This event is intended to be used with Style of control set to 'OutlookNavigationPane'. You could use GroupCollapsing or GroupExpanding for other styles.
Please do not hesitate to ask if I misunderstood you.
Hello Boris,
I already tried GroupExpanding or GroupCollapsing, both arent even firing when clicking on a group.
My UltraExplorerBar is set to "OutlookNavigationPane" style.
My UltraExplorerBar style of groups is set to "ControlContainer"
NavigationPaneExpansionMode is "OnButtonClick".
I intent to do some validation before the user can switch the ExplorerBar group and then cancel the event if validation fails.
I created the following case for you: 'CAS-89652-PK3B40' and will update you through it.
Meanwhile you could try using SelectedGroupChanging as a temporary workaround.
SelectedGroupChanging does the job very well. Thanks for this advice.
I will have a look at the support case, since I guess ActiveGroupChanging should behave simular.
I also believe so. We are working to ensure that we have a solution or an explanation for the event that you wanted to use in the first place.
Please do not hesitate to contact us if you need any additional assistance.
ok I understand. It's interesting how styles also influence behavior, argh ;)
Thanks for clearing this up. As I said earlier, it's working great with SelectedGroupChanging.
It seems that this behavior is right because the OutlookNavigationPane style allows groups to be selectable so in this scenario the ActiveGroupChanging will be canceled but the SelectedGroupChanging will also fire and would have to be canceled if the you did not want the SelectedGroup to change on a click. So you could use the SelectedGroupChanging event.