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

[Solved] RadChart click and drag events

6 Answers 214 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
skysailor
Top achievements
Rank 1
skysailor asked on 11 Mar 2008, 03:20 AM
Hi,

I am creating a Point type chart. I would like for my users to be able to click and drag the mouse on the chart to define a rectangle on the PlotArea. I then need a server side event to fire so I can determine which data points are within the rectangle and update my database accordingly. Can this be done? Any ideas on how it can be done?

I also want them to be able to click on individual data points and pop-up a window with information about that data point.

I realize that in the next release you are planning to add zooming. This might give an easy way to accomplish this - zoom in to the area you want and click a button to update all "visible" data points. But until then can anything be done with the current version?

Clayton Powell.

6 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 11 Mar 2008, 04:32 PM
Hello skysailor,

This is currently not possible and unfortunately we do not believe it will be possible to achieve with the zooming / scrolling feature either as its focus is more like a presentational enhancement. The thing is that even if a server-side Zoom event is exposed, it will be fired according to the ASP.NET page life-cycle well before the Render stage (where the chart layout and chart items information is calculated and the image is painted).

We are also not sure about the specific functionality you are looking for -- could you elaborate on the "zoom in to the area you want and click a button to update all "visible" data points" so we can pass your feedback to our developers for consideration for one of the future versions of the control.


Kind regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
skysailor
Top achievements
Rank 1
answered on 11 Mar 2008, 10:23 PM
I have seen the demos on how the zooming will work and it looks fantastic. After the user has zoomed in and scrolled to a section of the chart the user would click on a button (outside the chart) that would postback to the server. In this server side event I would like to be able to query the current zoom settings - e.g. X min X max and Y min and Y max. Will this be possible? I can then use this to work out which data points are in the current field of view of the zoom. Or if possible a chart method to get all currently "visible" (based on current zoom settings) SeriesItem objects? I would also assuem that you can set the chart zoom settings in the page load server side then render the chart starting at that zoom?
Thanks for your help with this.
0
Giuseppe
Telerik team
answered on 12 Mar 2008, 04:26 PM
Hi skysailor,

The scaling factor will be available on button click via XScale / YScale values that hold the current scaling factor applied to the XAxis / YAxis respectively. It will be possible to specify scaling factors on initial page load as well. However, RadChart cannot provide a utility method to return all visible SeriesItem objects, and I'm not sure you will be able to extract the necessary information from the zooming factors only as they do not indicate the currently scrolled part of the chart at a given zoom level.


Regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
skysailor
Top achievements
Rank 1
answered on 12 Mar 2008, 10:44 PM
Hi,
I'm glad that XScale and YScale are available on the host. But I would strongly suggest you add the ability to set and view the XOffset and YOffset values as well. If you can only initialize the zoom settings but not control the position of the zoomed in section then that doesn't give you much control. Also on postback I would need to know it to determine which points are visible. And I can see some clients wanting to save the current zoom view position so they can return to the same view state at a later time - you can't do that unless you can read and set the offset values.
Could you please consider this as a feature request for your upcoming release?
Thankyou, Clayton.
0
Giuseppe
Telerik team
answered on 13 Mar 2008, 04:09 PM
Hello skysailor,

Thank you for your feedback. We will pass it to our developers so they can consider it for the official release of the zooming / scrolling feature.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
skysailor
Top achievements
Rank 1
answered on 13 Mar 2008, 10:43 PM
Thankyou for considering this. I have added it as a feature request so I can track it within my Client.NET account.
Tags
Chart (Obsolete)
Asked by
skysailor
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
skysailor
Top achievements
Rank 1
Share this question
or