Open tooltip behaviour programatically

2 posts, 0 answers
  1. pelotasplus
    pelotasplus avatar
    2 posts
    Member since:
    Aug 2016

    Posted 12 Aug Link to this post

    I have chart with Y- (days) and X-axis (values), AreaSeries and whatnot and it all works just fine.

    When showing tooltip for particular day i simply call


    The problem is that at this particular point dataPoint's getLayoutSlot() returns RadRect.getEmpty() as this particular dataPaint has not been drawn on the chart yet.

    Which of course works as expected but neverthenless I need to show this tooltip when chart is shown.

    So my question is? How do I know that all data series (AreaSeries) is already drawn on chart so that all dataPoints have layoutSlot set to a real location on chart so that I can show tooltip?

  2. Deyan
    Deyan avatar
    2026 posts

    Posted 17 Aug Link to this post

    Hi Aleksander,

    Before getting to your question, I would like to ask you for some more details on your Chart setup. When do you want the Tooltip to be shown? Always when the chart is drawn or upon a certain user action?

    The simplest way to detect when the chart area has been calculated is to override the arrangeOverride method of RadCartesianChart. That said, you will have to subclass RadCartesianChartView and override the method by calling the super implementation and then doing your custom work.

    Telerik by Progress
    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. DevCraft banner
Back to Top