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

Radchartview selectionrange event?

3 Answers 65 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 10 May 2018, 10:14 PM

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.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 11 May 2018, 03:02 PM
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.
0
Michael
Top achievements
Rank 1
answered on 11 May 2018, 05:34 PM

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.

0
Accepted
Hristo
Telerik team
answered on 14 May 2018, 10:57 AM
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.
Tags
ChartView
Asked by
Michael
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Michael
Top achievements
Rank 1
Share this question
or