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

[Solved] Select a range of bar by draging mouse

3 Answers 91 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maheep
Top achievements
Rank 1
Maheep asked on 06 Dec 2010, 01:46 PM

In our application we have drawn a Histogram using a BarSeriesDefinition. Now I want my user to be able to select a range of value from x-Axis using drag of mouse.
Rad chart gives option of selected a single item as well as multiple items. But there is not way to select a range of items.
Can some one guide me, how to achieve this?

 

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Dec 2010, 08:53 AM
Hi Maheep,

At present, the requested functionality is not available for the control out of the box.
Nevertheless, you can use the interactivity functions in the control, to select one or more items:

RadChart1.DefaultView.ChartArea.SelectItem()

Note that the interactivity functionality is available for WPF4 / Silverlight4 projects only.
I hope this information helps.

Best wishes,

Yavor
the Telerik team

 

Browse the videos here>> to help you get started with RadControls for Silverlight
0
Maheep
Top achievements
Rank 1
answered on 07 Dec 2010, 09:33 AM
Ok.
A different approch to the solution can be that I allow user to select a range using "Press <shift> key while selecting the second item in serise" So can I find out that: If user has pressed <shift> key while selecitng the item?
0
Yavor
Telerik team
answered on 10 Dec 2010, 08:18 AM
Hello Maheep,

The following forum post contains more information on how to detect whether the shift key is held down:

http://stackoverflow.com/questions/973721/c-detecting-if-the-shift-key-is-held-when-opening-a-context-menu

I hope it helps.

Best wishes,
Yavor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Chart
Asked by
Maheep
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Maheep
Top achievements
Rank 1
Share this question
or