User (Legacy) Posted December 5, 2006 Report Posted December 5, 2006 If I do a myChart.ToolBar.RemoveAt(0) to remove the "Personalized Charts" button the "Properties" button also disappears. I have tried removing other buttons and it does not matter which button is removed, the "Properties" button is also removed. I need to remove the "Personalized Charts" button and the "Print" button but keep all of the other buttons. What am I doing wrong? I am running Chart FX for Visual Studio 2005 Version 7.0.2424.18088. Thank you.
Software FX Posted December 5, 2006 Report Posted December 5, 2006 Are you generating images ? If so, the properties button is NOT available in images. The button should not appear. Ever. I tried to reproduce a case where the property button was displayed in an image but I couldn't, I was never able to get this button in an image (which is by design). Using the .NET Client I get the properties button whether or not I remove the Personalize button. Please comment out the code that removes the personalize button and verify that you are getting the properties button, if you are (in an image) please attach a sample program that reproduces this case. -- Francisco Padron www.chartfx.com
User (Legacy) Posted December 5, 2006 Author Report Posted December 5, 2006 Francisco, I found a way around the problem. I was removing the buttons at the bottom of the OnInit and before I add the data. I moved the code to the bottom of the page load and it fixed the problem. I now have this code in the page load. if (!IsPostBack) { //Remove the Personalization button. _trendChart.ToolBar.RemoveAt(0); // Remove the Print button. _trendChart.ToolBar.RemoveAt(1); } Thank you for your help. Dan "Software FX" <noreply@softwarefx.com> wrote in message news:qxbYsDKGHHA.2608@webserver3.softwarefx.com... > Are you generating images ? If so, the properties button is NOT available > in images. The button should not appear. Ever. I tried to reproduce a case > where the property button was displayed in an image but I couldnĀ“t, I was > never able to get this button in an image (which is by design). > > Using the .NET Client I get the properties button whether or not I remove > the Personalize button. > > Please comment out the code that removes the personalize button and verify > that you are getting the properties button, if you are (in an image) > please attach a sample program that reproduces this case. > > -- > Francisco Padron > www.chartfx.com >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.