unable to get SeriesSelectionMode for ChartSelectionBehavior

5 posts, 0 answers
  1. Supriya
    Supriya avatar
    13 posts
    Member since:
    Mar 2013

    Posted 03 Jun 2013 Link to this post

    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.


  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 06 Jun 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Supriya
    Supriya avatar
    13 posts
    Member since:
    Mar 2013

    Posted 19 Jun 2013 Link to this post

    Can you provide me with an example of your solution as given?
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 24 Jun 2013 Link to this post

    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.

  6. Supriya
    Supriya avatar
    13 posts
    Member since:
    Mar 2013

    Posted 29 Jul 2013 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready