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

Kendo Tooltip on a Kendo Window results in a corrupted DOM

1 Answer 127 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 21 May 2013, 04:10 PM
I have a Kendo Window which I am dynamically loading and showing when the user clicks on a "details" link in a grid. The dynamic content contains a Kendo Tooltip. Each time the Kendo Window is loaded and shown, new HTML markup is generated for the tooltip outside of the DIV that contains the window's content. This results in multiple copies of the same tooltip markup in the DOM. 

Is there any way I can tell the tooltip to render inside of a specific region of the page, so it would be overwritten when the KendoWindow is filled with new content?

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 22 May 2013, 08:23 AM
Hi Dan,

In your scenario you should manually destroy the Tooltip instance, by calling its destroy method, when the Window is closed. This way the Tooltip will be notified to remove the popup's html from the DOM. Here you can find a basic jsbin sample which demonstrates this.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ToolTip
Asked by
Dan
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or