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

Show menu when button clicked on chart serie item.

1 Answer 76 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jose Mejia
Top achievements
Rank 1
Jose Mejia asked on 11 Oct 2010, 03:33 PM
Hello!

Is there any possibility to get  information about button clicked on chart item, because I need to show context menu if right button clicked.

For know I use following code:
private void  ActiveRegion_Click(object sender, RegionClickEventArgs args)
        {
            var fileId = Convert.ToInt32(args.Element.ActiveRegion.Attributes);
            _tableFilesBindingSource.Position = SearchFilesTableBindingSource(fileId);
            _isOnSomeSerieItem = true;
        }
...
 
 private void  _radChart1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right && _isOnSomeSerie)
            {
                GetFileGridMenu().Show(_radChart1, e.X, e.Y);
                _isOnSomeSerieItem = false;
            }
        }

where _isSomeSerieItem is private filed.
Is there more correct way to do that?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Milev
Telerik team
answered on 14 Oct 2010, 10:51 AM
Hi Jose Mejia,

Unfortunately, the EventArgs classes exposed by RadChart do not provide information about which button was clicked.

Kind regards,
Vladimir Milev
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
Tags
Chart (obsolete as of Q1 2013)
Asked by
Jose Mejia
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or