Hi All
I'm currently using RadialMenu v13.2.2023 and I was trying out the radial menu. What I was trying to do was if the user clicks on the Menu Tool and not the DrillDown button then in the method _ToolClick I was selecting the key of the tool and then trying the following .PerformAction(UltraWinRadialMenu.UltraRadialMenuAction.DrillDown). This and all other possible actions return a False so I was wondering what else should I be doing? Clicking on the drilldown button does work correctly.
Look forward to your replies.
Hi Mike
This code works for me.
In _ToolClick put this code first before reading key. Remove your PreviousNext and NextItem in your Case Select. You will only need one DrillDown command. Hope this helps get you started.
For j = 0 To e.Tool.VisiblePosition 'Perform this amount of clicks Me.UltraRadialMenu1.PerformAction(UltraWinRadialMenu.UltraRadialMenuAction.NextItem)
Next
Me.ultraRadialMenu1.PerformAction(UltraWinRadialMenu.UltraRadialMenuAction.DrillDown)
Kind RegardsPaul
Hi,
i have the same Problem, 5 years later...
When the Tool ist clicked, i want to execute the drilldown.For this i am getting the ToolClick-Event of the UltraRadialMenu.
Executing the PerformAction "DrillDown" doesn't do anything.UltraRadialMenu1.PerformAction(UltraRadialMenuAction.DrillDown)
As mentioned in this answer i tried to do the "NextItem" before.UltraRadialMenu1.PerformAction(UltraRadialMenuAction.NextItem)UltraRadialMenu1.PerformAction(UltraRadialMenuAction.DrillDown)Now i get different results on two Tools:at the first i have no reaktionat the second a drilldown is done - to a complete empty menu
By the way, if i do the drilldown with the mouse manually everything works.But executed by code doesn't work.
Here's the code:
Private Sub UltraRadialMenu1_ToolClick(sender As Object, e As Infragistics.Win.UltraWinRadialMenu.RadialMenuToolClickEventArgs) Handles UltraRadialMenu1.ToolClick Select Case e.Tool.Key Case "mnuNeueArbeit" UltraRadialMenu1.PerformAction(UltraRadialMenuAction.PreviousItem) UltraRadialMenu1.PerformAction(UltraRadialMenuAction.NextItem) UltraRadialMenu1.PerformAction(UltraRadialMenuAction.DrillDown) Case "mnuFavoriten" UltraRadialMenu1.PerformAction(UltraRadialMenuAction.NextItem) UltraRadialMenu1.PerformAction(UltraRadialMenuAction.DrillDown) End Select End Sub
A screenshot from the Readial-Menu
"Neue Arbeit" und "Favoriten" are the tools in request
The result after the click-event with "NextItem" and "Drilldown" at Favoriten, Click on "Neue Arbeit" has still no reaktion
If i click with the mouse at the drilldown-button of "Neue Arbeit" this menu is correctly shown.This should be the same result, when i click at the tool itself.
I have tried a lot of to get an other way around this bug - but i found nothing.
Do you have any idea?
Thanks a lot.
Greets,
Mike
Thank you for reply. By performing the NextItem first and then DrillDown worked a treat thank you. I was assuming that because I was catching the clicked tool in the _ToolClick method that it already was the selected item.
Kind Regards
To be honest I'm not terribly familiar with this control, but I looked at the code and the DrillDown action will fail if there is no focused/activated tool, and will also fail if the CenterTool is focused. So if you get some child tool of the CenterTool to be focused, it should work...I was able to get that to happen like so:
// Expand
this.radialMenu.Expanded = true;
// Activate the next tool
this.radialMenu.PerformAction(Infragistics.Win.UltraWinRadialMenu.UltraRadialMenuAction.NextItem);
// Drill down
bool ok = this.rm.PerformAction(Infragistics.Win.UltraWinRadialMenu.UltraRadialMenuAction.DrillDown);