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

After a row is selected RadGridView Highlight the dynamic setting BarSeriseDefinition

3 Answers 82 Views
Chart
This is a migrated thread and some comments may be shown as answers.
wang
Top achievements
Rank 1
wang asked on 26 Jul 2011, 12:08 PM
hi I am from China   Thanks!
How to select RadGridView when the BarSeriesDefinition Item highlighting
Figure:
After a row is selected RadGridView
Highlight the dynamic setting BarSeriesDefinition:

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 28 Jul 2011, 03:47 PM
Hello Wang,
I am not quite sure I understand the problem that you have integrating RadGridView and RadChart. That is why, in case the provided information does not help you, please describe your setup and concrete problem in detail.

The interactivity support of RadChart is disabled by default and can be controlled through the Interactivity API under SeriesDefinition.InteractivitySettings complex property. You can find additional information on the interactivity effects of RadChart here - http://www.telerik.com/help/silverlight/radchart-features-interactivity-effects.html.

You can, as well, handle the ItemClick event of the bar items or even select a bar item programmatically. For additional information on this topic, please refer to the following article - http://www.telerik.com/help/silverlight/radchart-features-interactivity.html.

Regarding the selection functionality of RadGridView - please refer to this help topic - http://www.telerik.com/help/silverlight/gridview-overview-data-selection.html.

Regards,
Tsvetie
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
wang
Top achievements
Rank 1
answered on 03 Aug 2011, 03:31 AM
These are not what I want.

void radGridView_SelectionChanged(object sender, SelectionChangeEventArgs e)
 {
            SingalDate sing = ( radGridView.SelectedItem as SingalDate);
             string xvalue = singal.XValue; 
//Highlight the dynamic setting BarSeriseDefinition 
//In BarSeriseDefinition sure there is a corresponding XValue 
//As the mouse moves on to the DataPoint. Exactly the same as the effect.
             //Makes the data points in singal.XValue == datapoint.XValue highlighted

}

class SingalDate
{
private string XValue{get;set;}
}
0
Tsvetie
Telerik team
answered on 05 Aug 2011, 12:18 PM
Hi Wang,
In case I understand you correctly, you want to hover a bar item programmatically, when the selection of the grid view changes. This, however, is not supported. What you can do, is mark the bar item as selected. This is demonstrates in the Interactivity article that I pointed you to in my previous reply. Have a look at the following code fragment, taken from that article:
foreach (DataPoint dataPoint1 in Chart1.DefaultView.ChartArea.DataSeries[0])
{
     if(dataPoint1.YValue==154.0)
         Chart1.DefaultView.ChartArea.SelectItem(dataPoint1);
}

You can, additionally, re-template the bar items, to change the selected state of the bar items to meet your requirements. Please, refer to the following forum post, it will help you get started with this implementation, in case you decide to try this approach - http://www.telerik.com/community/forums/silverlight/chart/magnify-mouse-over.aspx.

Regards,
Tsvetie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
Chart
Asked by
wang
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
wang
Top achievements
Rank 1
Share this question
or