Tool Bar

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

4 Replies

AD Administrator Syncfusion Team May 20, 2009 04:22 PM UTC

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


AD Administrator Syncfusion Team May 21, 2009 09:01 AM UTC

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.





MS Manimala S Syncfusion Team May 21, 2009 09:02 AM UTC

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.





ML Mia Lee May 27, 2009 03:36 PM UTC

Thanks! it works

Loader.
Up arrow icon