Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • The Viewstate doesn't seem to be preserving the state of the WebChartControl properly when it has mutiple panes.

                                    Steps to Reproduce:

                                    See attached project Default.aspx

                                ChartPanes.zip
                                0

                                Ignore the rpinting issue - that's sorted. It's just the Viewstate issue I'm reporting here.

                                0

                                Sorry: the above should say *printing* issue ...

                                0

                                Hi Anthony,

                                We've managed to fix this issue on our side. The fix will be available with our next minor release.

                                But you need to change your code. You should define the names for the panes and secondary axes created via constructor, as follows:

                                public XYDiagramPaneBase AddPane(string caption, bool isBigCaption)
                                   {
                                       AxisYBase yaxis;
                                       XYDiagramPaneBase pane;

                                       if (!_isDefaultPaneInitialised)
                                       {
                                           // add a dummy series
                                           chartMain.Series.Add(new Series("dummy", ViewType.Bar));

                                           yaxis = Diagram.AxisY;
                                           pane = Diagram.DefaultPane;

                                           _isDefaultPaneInitialised = true;
                                       }
                                       else
                                       {
                                           yaxis = new SecondaryAxisY(caption);
                                           pane = new XYDiagramPane(caption);
                                           Diagram.SecondaryAxesY.Add(yaxis as SecondaryAxisY);
                                           Diagram.Panes.Add(pane as XYDiagramPane);
                                       }

                                       InitialiseYAxis(yaxis, caption);

                                       if (!isBigCaption)
                                           SetSmallCaptionFont(yaxis);

                                       return pane;
                                   }

                                Thanks,
                                Andrew

                                0

                                Thanks Andrew

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners