Show menu when button clicked on chart serie item.

2 posts, 1 answers
  1. Jose Mejia
    Jose  Mejia avatar
    107 posts
    Member since:
    May 2009

    Posted 11 Oct 2010 Link to this post


    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?
  2. Answer
    Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 14 Oct 2010 Link to this post

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top