Kendo Tooltip on a Kendo Window results in a corrupted DOM

2 posts, 0 answers
  1. Dan
    Dan avatar
    1 posts
    Member since:
    Aug 2010

    Posted 21 May 2013 Link to this post

    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?
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 22 May 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top