ChartView Tooltip Text

3 posts, 1 answers
  1. Rafael
    Rafael avatar
    12 posts
    Member since:
    Jan 2011

    Posted 27 Nov 2015 Link to this post

    Hi,

     I need to change the tooltip TEXT showed in my RadChartView serie but I have no idea of how to do this.

     

    Could anyone help?

     

    Thank you.

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 30 Nov 2015 Link to this post

    Hi Rafael,

    Thank you for writing.

    You can use the DataPointTooltipTextNeeded event to change the default text:
    public RadForm1()
    {
        InitializeComponent();
         
      
        var tooltipController = new ChartTooltipController();
        tooltipController.DataPointTooltipTextNeeded += tooltipController_DataPointTooltipTextNeeded;
        radChartView1.Controllers.Add(tooltipController);
    }
      
    void tooltipController_DataPointTooltipTextNeeded(object sender, DataPointTooltipTextNeededEventArgs e)
    {
        e.Text = "MyText";
    }

    Please let me know if there is something else I can help you with. 
     
    Regards,
    Dimitar
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Rafael
    Rafael avatar
    12 posts
    Member since:
    Jan 2011

    Posted 30 Nov 2015 in reply to Dimitar Link to this post

    That is it! ;)

     

    Thank you!

Back to Top