LSUgirl Posted August 1, 2007 Report Share Posted August 1, 2007 1. In 6.2, we used the following to disable the toolbar on a chart. What is the function in 7.x? I don't want the user to have the right-click menu. And is there a way to define it in the aspx page? Chart1.AllowEdit = false; 2. In 7.0, how can I have the following stacked behavior in the aspx page? Chart1.AllSeries.Stacked = Stacked.Normal; where do I put that in here? When I'm selecting it from the style, it's not saving the tag in the chart. I want to just hardcode it but I don't know where it should go. <chartfx7:Chart ID="Chart1" runat="server" Height="592px" Palette="Schemes.Professional" Width="375px"> <AxisY Title-Text=""> </AxisY> <AxisX Title-Text=""> </AxisX> <Series> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> </Series> <AllSeries Gallery="Gantt" BarShape="Cylinder"> </AllSeries> <LegendBox Dock="Bottom"> </LegendBox> <SpecialObjects> <chartfx.webforms.adornments.imageborder assemblyname="ChartFX.WebForms.Adornments" color="93, 123, 157"></chartfx.webforms.adornments.imageborder> <chartfx.webforms.galleries.bar></chartfx.webforms.galleries.bar> </SpecialObjects> <View3D Enabled="True" /> <MainPane AxisY-Title-Text="" /></chartfx7:Chart> I'm asking about the aspx page definition because I'm going to eventually create a theme skin that can be used on the aspx pages. I don't want to have to modify/add items to the code behind (cs). Quote Link to comment Share on other sites More sharing options...
Frank Posted August 1, 2007 Report Share Posted August 1, 2007 > 1. In 6.2, we used the following to disable the toolbar on a chart. What is the function in 7.x? I don't want the user to have the right-click menu. And is > there a way to define it in the aspx page? To disable the right-click menu: chart.ContextMenus = false; To disable all AJAX UI in your Chart FX WebForms charts: chart.ImageSettings.Interactive = false; > 2. In 7.0, how can I have the following stacked behavior in the aspx page? This is an issue with the WebForm Designer. You can add it manually within the AllSeries tag. For example: <AllSeries Stacked="Normal"></AllSeries> Quote Link to comment Share on other sites More sharing options...
LSUgirl Posted August 1, 2007 Author Report Share Posted August 1, 2007 Thanks for the great help. One more thing... 1. Do you know the syntax for Chart.ContextMenus=false for aspx page? I want to get as much in the aspx page (later the theme) as possible. Quote Link to comment Share on other sites More sharing options...
LSUgirl Posted August 1, 2007 Author Report Share Posted August 1, 2007 This is an issue with the WebForm Designer. You can add it manually within the AllSeries tag. For example: <AllSeries Stacked="Normal"></AllSeries> I'm getting a compile error. Error 27 Validation (ASP.Net): The values permitted for this attribute do not include 'Normal'. If I select "true" as the value (since true/false are my selectable values in intellisence), I get the runtime error. <AllSeries Stacked="true"></AllSeries> OR <AllSeries Stacked=true></AllSeries> Parser Error Message: Cannot create an object of type 'ChartFX.WebForms.Stacked' from its string representation 'true' for the 'Stacked' property. Quote Link to comment Share on other sites More sharing options...
Frank Posted August 2, 2007 Report Share Posted August 2, 2007 > I'm getting a compile error. Ignore the warning. This is a problem in the ASP.NET Serializer. The other option is to do it in code. As for ContextMenus, you can set it from the property grid and the appropriate markup will be generated. MapsTest.zip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.