Radchartview selectionrange event?

4 posts, 1 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Apr 2017

    Posted 10 May 2018 Link to this post

    Hello,

    Im currently trying to rewrite an application that allows the user to select several data points by dragging the mouse over the chart area. Basically the user holds down the left mouse button, creates a rectangular area by dragging with the mouse, and anything inside that area will be selected. Does radviewchart support something like this? I'm looking for something analogous to Dundas chart's selectionrangechanging event. Sorry if there's an obvious answer here, I just started using telerik yesterday. Thanks.

     

     

     

  2. Hristo
    Admin
    Hristo avatar
    1519 posts

    Posted 11 May 2018 Link to this post

    Hi Michael,

    RadChartView is working with various controllers to provide a seamless user experience. I believe the LassoZoomController can fit your local setup. Please check the following article in our documentation for more details: https://docs.telerik.com/devtools/winforms/chartview/features/lasso-selection.

    I hope this will help. Let me know if you need further assistance.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Michael
    Michael avatar
    3 posts
    Member since:
    Apr 2017

    Posted 11 May 2018 in reply to Hristo Link to this post

    Thanks for your answer.

     

    I'm actually looking for something that will not zoom, but instead will be able to tell which datapoints are in the rectangular area so that i can park them as selected, then do something with those data points on the backend.

  4. Answer
    Hristo
    Admin
    Hristo avatar
    1519 posts

    Posted 14 May 2018 Link to this post

    Hello Michael,

    Thank you for writing back.

    I have logged a feature request for developing a lasso selection controller. Once implemented you should be able to perform a selection with a lasso rectangle without actually zooming the viewport. The item is logged on our feedback portal, here: ADD. RadChartView - implement LassoSelection controller. I have also updated your Telerik Points for the report.

    Until the feature becomes available, you can use the attached custom implementation. You will need to create a custom controller, paint the lasso rectangle and in the MouseUp event check which data points are within the rectangle. Then you can raise an event from within the controller and handle it in your form.

    I hope this helps. Let me know if you need further assistance.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top