Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Is it possible to disable tools item in a ribbon tab
posted

Hi ,

could any one tell me if it is possible disable ribbon tools depending on actions of the user? Any pointers if this is possible and using which code?

 

 

Parents
  • 4219
    Verified Answer
    posted

    Hi,

     

    It depends under what circumstances you would like to disable a tool. Simply to disable a tool you can use its SharedProps.Enabled property, e.g.:

     

    foreach (ToolBase tool in this.ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools)

    {

    tool.SharedProps.Enabled = false;

    }

    Which will disable all tools in the first group of the first tab of the ribbon.

     

    Let me know if this is what you are looking for or if you need further assistance.

     

    Regards,

    Stefaniya

Reply Children
No Data