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

Selection of bar on combo selectin change

1 Answer 32 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Ramya asked on 28 Apr 2011, 01:33 PM

    i have all the x axis values on a graph within the combo. suppose i select a value in the combox tht corresponding bar should be selected in the chart suppose i have mango,apple in the x-axis and the same name appears in my combo box when i select mango on the combo box the corresponding bar realted to mango shld be der a possibility any help?


1 Answer, 1 is accepted

Sort by
Missing User
answered on 03 May 2011, 02:08 PM
Hello Ramya,

First you need to define the InteractivitySettings of the SeriesDefinition:
        <telerik:InteractivitySettings HoverScope="None" SelectionScope="Item" />

After that you can set the RadChart.DefaultView.ChartArea.SelectItem(int itemIndex) in the ComboBox.SelectionChanged event. In this case the itemIndex will be the ComboBox.SelectedIndex.
private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)

Please note that you need to sort the Items of the ComboBox, so that their order will be like the order of the items on the XAxis. This will ensure that when you select an item from the ComboBox its index will be the same as the needed item in the RadChart.

I hope this helps

the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Top achievements
Rank 1
Answers by
Missing User
Share this question