3 posts, 0 answers
  1. Natália
    Natália avatar
    36 posts
    Member since:
    Jun 2010

    Posted 30 Aug 2010 Link to this post


    I am creating a RadChart with ChartLegend customized and am trying to implement the feature of interactivity, I am getting the following error message:

    Unhandled Error in Silverlight Application Object reference not set to an instance of an object.   em Telerik.Windows.Controls.Charting.ChartLegendItem.get_HoverScope()\n
    em Telerik.Windows.Controls.Charting.ChartLegendItem.OnMouseLeave(MouseEventArgs e)\n
       em System.Windows.Controls.Control.OnMouseLeave(Control ctrl, EventArgs e)\n   em MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)"

    I'm using version RadControls for Silverlight Q2 2010.

    SeriesMapping seriesMapping = new SeriesMapping();
                                    seriesMapping.LegendLabel = Caption;
                                    seriesMapping.SeriesDefinition = serieDefinition;
                                    seriesMapping.SeriesDefinition.ShowItemToolTips = true;
                                    seriesMapping.SeriesDefinition.ShowItemLabels = false;
                                    seriesMapping.SeriesDefinition.Appearance.Fill = chart.PaletteBrushes;
                                    seriesMapping.SeriesDefinition.InteractivitySettings.HoverScope = InteractivityScope.Series;
                                    seriesMapping.SeriesDefinition.InteractivitySettings.SelectionScope = InteractivityScope.Series;
                                    ItemMapping itemMappingX = new ItemMapping();
                                    itemMappingX.DataPointMember = DataPointMember.XCategory;
                                    itemMappingX.FieldName = axis1;
                                    ItemMapping itemMappingY = new ItemMapping();
                                    itemMappingY.DataPointMember = DataPointMember.YValue;
                                    itemMappingY.FieldName = member.Caption;
                                    ChartLegendItem cli = new ChartLegendItem();
                                    cli.Label = Caption;
                                    cli.MarkerShape = markerShapes;
                                    cli.Background = chart.PaletteBrushes;

    When I select the bars of the graph works fine but when I move the mouse over the ChartLegend the error appears.


  2. Natália
    Natália avatar
    36 posts
    Member since:
    Jun 2010

    Posted 01 Sep 2010 Link to this post

    The problem is the version of RadControls?
    Can I add the feature of interactivity in a custom ChartLegend?
    How do I?

  3. Ves
    Ves avatar
    2926 posts

    Posted 02 Sep 2010 Link to this post

    Hello Natália,

    Please, download the latest version of RadControls for Silverlight - Q2 2010 SP1. It does not show such issues on our end. Still, interactivity features for custom legend items are not currently supported as interactivity features are defined through the SeriesDefinition.

    Best regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top