This control (UltraExploreBar) has default values by clicking the right mouse button, such as adding a group, and other item.I have a particular contextual menu associated with this control.When I do right click the control menu appears first by default and then my custom menu.How I can disable the default menu control ultraexplorebar?Thanks ....
Hello Xavendano,
Maybe one possible approach to achieve the desired behavior is to handle these two events:
private void ultraExplorerBar1_NavigationContextMenuInitializing(object sender, Infragistics.Win.UltraWinExplorerBar.CancelableNavigationContextMenuInitializingEventArgs e) { e.Cancel = true; } private void ultraExplorerBar1_ContextMenuInitializing(object sender, Infragistics.Win.UltraWinExplorerBar.CancelableContextMenuInitializingEventArgs e) { e.Cancel = true; }
private void ultraExplorerBar1_NavigationContextMenuInitializing(object sender, Infragistics.Win.UltraWinExplorerBar.CancelableNavigationContextMenuInitializingEventArgs e)
{
e.Cancel = true;
}
private void ultraExplorerBar1_ContextMenuInitializing(object sender, Infragistics.Win.UltraWinExplorerBar.CancelableContextMenuInitializingEventArgs e)
Please let me know if you have any further questions.
Regards
Works fine!
With the second event option: ContextMenuInitializing
Thanks!!!