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
330
How to set the text programatically on UltraToolbarsManager tool items
posted

I can iterate over the tools and see them but I need to change the tool text and set the enabled property on specific tools.  Any examples?

Parents
  • 53790
    Verified Answer
    posted

    Hello Tim,

    Maybe one possible solution could be:

    private void ultraButton1_Click(object sender, EventArgs e)

    {

      int k=0;

      foreach (ToolBase tool in ultraToolbarsManager1.Tools)

         {

               tool.SharedProps.Caption ="Item "+ k.ToString();

               tool.SharedProps.Enabled =false;

               k++;

           }

    }

    Please take a look at the attached sample and video file for more details.

     

    Video322.rar
Reply Children