Jump to content
Software FX Community

Removing Statistical Studies option from Context Menu and Toolbar


MJ27

Recommended Posts

 Hi All,

I am trying to remove the 'Statistical Studies' option from toolbar and context menu.

 

I have tried clearing the context menu by doing:

 mChart.Commands[ChartFX.WebForms.CommandId.ContextMenuBack].SubCommands.Clear();

this  clear everything except the statistical studies option. At runtime I can still see 'Statistical Studies' in context menu.

 

On the toolbar I know the position of 'Statistical Studies' option therefore I tried doing :

 mChart.ToolBar.RemoveAt(15);   // assume 15 is the position of 'Statistical Studies'

this did not work.

 

In code I also tried setting the Legend Box to false:

((Statistics)mChart.Extensions[0]).LegendBox.Visible = false;

still no joy.

 

Is there any other way of removing 'Statistical Studies' option from the toolbar and context menu.

 

Regards,

MJ

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...