We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Tool Bar

Thread ID:

Created:

Updated:

Platform:

Replies:

81550 May 20,2009 11:38 AM May 27,2009 11:36 AM Windows Forms 4
loading
Tags: Chart
Mia Lee
Asked On May 20, 2009 11:38 AM

Is there a way to only show the copy, print and preview icons in the tool bar and not the rest of the tool bar?

Thanks

Administrator [Syncfusion]
Replied On May 20, 2009 12:22 PM

Let me know if there is a better way to remove all tool bar icons except for Copy, Print, and Preview (the first three icons) than the way I have done it below.

this.chartControl1.ToolBar.Items.RemoveAt(8);
this.chartControl1.ToolBar.Items.RemoveAt(7);
this.chartControl1.ToolBar.Items.RemoveAt(6);
this.chartControl1.ToolBar.Items.RemoveAt(5);
this.chartControl1.ToolBar.Items.RemoveAt(4);
this.chartControl1.ToolBar.Items.RemoveAt(3);

Thanks

Administrator [Syncfusion]
Replied On May 21, 2009 05:01 AM

Hi Mia lee,

Thanks for using Syncfusion Products.

We have to remove the toolbar icons by the way you have done,
i.e., this.chartControl1.ToolBar.Items.RemoveAt(index);

This is only way for removing the toolbar icons at runtime.

If suppose you want the toolbar buttons to be removed at design time, then you can open the chart wizard(by right clicking on the chart control and then choosing the Chart Wizard from the context menu) and can delete the unwanted buttons in the tool bar.

Kindly, let me know if it helps.

Thanks,
Manimaala.




Manimala S [Syncfusion]
Replied On May 21, 2009 05:02 AM

Hi Mia lee,

Thanks for using Syncfusion Products.

We have to remove the toolbar icons by the way you have done,
i.e., this.chartControl1.ToolBar.Items.RemoveAt(index);

This is only way for removing the toolbar icons at runtime.

If suppose you want the toolbar buttons to be removed at design time, then you can open the chart wizard(by right clicking on the chart control and then choosing the Chart Wizard from the context menu) and can delete the unwanted buttons in the tool bar.

Kindly, let me know if it helps.

Thanks,
Manimaala.




Mia Lee
Replied On May 27, 2009 11:36 AM

Thanks! it works

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;