This is a migrated thread and some comments may be shown as answers.

unable to get SeriesSelectionMode for ChartSelectionBehavior

4 Answers 80 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Supriya
Top achievements
Rank 1
Supriya asked on 03 Jun 2013, 08:57 AM
i have been using free trial version of telerik tool. I am not getting the property SeriesSelectionMode for a ChartSelectionBehavior
in radcartesianchart.
i am also trying to get the selected points from selected lineseries. these lineseries are selected when a rectangle is dragged over the graph. (for eg. this similar to selecting some lines from notepad and working on those lines.)
the series falling under this rectangle should give the respective data points.
Can u give me some example to work on it. Looking forward for the reply.


4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 06 Jun 2013, 08:50 AM
Hi Supriya,

Series selection is not directly supported. You can take advantage of the SelectionChanged event of ChartSelectionBehavior to select all the points in a given series, once any point in it is selected. Drag-to-select is not supported either -- you can use the Conversion API to capture mouse click and drag within the chart and select the points programmatically.

Best regards,
Ves
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Supriya
Top achievements
Rank 1
answered on 19 Jun 2013, 12:38 PM
Can you provide me with an example of your solution as given?
0
Ves
Telerik team
answered on 24 Jun 2013, 10:57 AM
Hi,

I have attached a small example that will help you to start with this.

Best regards,
Ves
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Supriya
Top achievements
Rank 1
answered on 29 Jul 2013, 01:50 PM
Hi,
I have got the licensed version of telerik. But still i am not able to get Series selection mode and am adding the chart selection behavior to the chart using MVVM.
the code is :
           _graphView.xCartesianGraph.Behaviors.Add(chartSelection);
            chartSelection.DataPointSelectionMode = Telerik.Windows.Controls.ChartSelectionMode.Multiple;
            chartSelection.HitTestMargin = new Thickness(20);
            chartSelection.SelectionChanged += new EventHandler<ChartSelectionChangedEventArgs>(chartSelection_SelectionChanged)

And am unable to call chartSelection_SelectionChanged event from here.

Please provide me the solution as soon as possible.
Tags
ChartView
Asked by
Supriya
Top achievements
Rank 1
Answers by
Ves
Telerik team
Supriya
Top achievements
Rank 1
Share this question
or