I am using the UltraToolbar in my UltraGrid and I added some Tools[which I think are basically like menu items]. But I would like to hide some Tools[menu items] in certain circumstances. I dont see a easy way[couldnt find one at all] to do it. Could somebody point me in the right direction?. Here is my typical use case.
I have a menu like this in UltraGrid
Options
SubOption1
SubOption2
Now the issue is that I want to disable SubItem1[which is a button tool item] to start with and enable it when I need. Thanks
I don't see how this could possibly be a bug. It's some of the most basic functionality in the component, so if this didn't work, there'd be lots of people noticing it. The code I gave you here is just to disable the item, by the way, not to hide it. To hide a tool, you would use the Hidden property.
Anyway, my guess is that something in your code must be overriding the setting of the property. The most obvious thing that springs to mind is that you are loading your toolbar from a file.
That doesnt seem to do anything. Could htis be a bug or is thre any other setting thats overriding it?
this.ultraToolbarsManager1.Tools["SubOptions1"].SharedProps.Enabled = false;