JaneToo
(Jane)
March 10, 2023, 12:17pm
1
I can put restrictions to the Post options but its not effecting for Post Asynchronous.
How do i grey out this so that its not available to users
JasonMcD
(Jason McDermott)
March 14, 2023, 9:14pm
2
Sorry, I don’t have an answer but I am fascinated by what you did do…
So how did you block users from the other “Actions” items?
gpayne
(Greg Payne)
March 14, 2023, 10:07pm
3
@JaneToo I think this thread will help you. It is about removing, but you could also disable it. In BeforeToolClick you could also check for this tool and a user and or a security group and just set args.Handled = true so it would not fire off the action.
You’ll need to figure out the name of the tool, but you can just use something like
//simply call this method during your form load event and make sure to add
using Infragistics.Win.UltraWinToolbars;
private void HideAllNativeControls()
{
// Hide Native Toolbar Controls
baseToolbarsManager.Tools["NewTool"].SharedProps.Visible=false;
baseToolbarsManager.Tools["RefreshTool"].SharedProps.Visible=false;
baseToolbarsManager.Tools["DeleteTool"].SharedProps.Visible=false;
baseToolbarsMana…