RadChartView Control: corrupts legend when set Series IsVisibleInLegend = False in Properties at design time Simply added a few extra series , and then tried to turn them off in the legend screen shot shows too many legent items for the series in the properties window
Thank you for the detailed explanation. I managed to replicate the issue and I am going to change its status to approved. We will work in its resolution in future. Meanwhile, you can setup your chart at design time, but set the IsVisibleLegend property in code, at runtime.
new prj add radchartview as rcv select series add 2 x scatterseries RC1, RC2 add 2 x scatterLineseries RCL1, RCL2 nb. (we only use scatterseries and scatterlineseries) As add each set legendtext rcv.showlegend = true save all go back into rcv.series properties select series and make RC1.IsLegend = false (see legend text disappear from rcv) select series and make RLC2.IsLegend = false (see legend text disappear from rcv) close series propeties (ERROR: now see all 4 series in the legend not 2 as expected) save all go back and add an extra couple of series RC3, RCL3 now I have series 0,4,5 all with IsVisibleInLegend= false yet have 5 legend text items not 3 on closing series properties form I have all 6 series in the legend on the form save all and then close form reopen form Get Exception as reported in another bug report Machine generated alternative text (appears 3 times (one for each series thats set to false): Error setting property "15VisibIeInLegend" in class "Telerik.WinControIs.UI.CatesianSeries" to value "False". The error was: System.NuIIReferenceException: Object reference not set to an instance of an object. at System.ComponentModeI.RefIectPropertyDescriptorSetVaIue(Object component, Object value) T elerik.WinControIs.Design.RadObjectCustomPropertyDescriptor SetVaIue(Object component, Object value)
Hi Ian, I am still unable to get a clear picture of the scenario. Would you be able to describe it in a step by step matter. Once I am able to replicate the issue, I will be able to approve it.
apologies added the wrong attachment When I close my custom control and reopen it - they are again synchronized
A sample here would be appreciated.