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

Close tooltip on click event

3 Answers 20 Views
Chart
This is a migrated thread and some comments may be shown as answers.
AP
Top achievements
Rank 1
Veteran
AP asked on 25 Feb 2021, 11:54 AM

I have a chart, with a click event which opens a window with a grid in it. This works fine, but most of the time, the chart tooltip stays visible, on top of the window and grid.

 

How can I prevent this, either by closing the tooltip before the window opens, or have the window show above the tooltip?

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 Mar 2021, 07:41 AM

Hello Andrew,

I suggest removing the chart tooltip via the hideTooltip() method in the click event handler just before initializing the window.

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/methods/hidetooltip

seriesClick: function(e) {
          e.sender.hideTooltip();
          wnd.center().open();
        }

I have prepared a small Dojo demo demonstrating the above:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
AP
Top achievements
Rank 1
Veteran
answered on 04 Mar 2021, 09:47 AM
Thanks for this.
0
Nikolay
Telerik team
answered on 09 Mar 2021, 07:32 AM

Hi Andrew,

You are most welcome.

Please let us know if anything new arises.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Chart
Asked by
AP
Top achievements
Rank 1
Veteran
Answers by
Nikolay
Telerik team
AP
Top achievements
Rank 1
Veteran
Share this question
or