Destroying the editor and related DOM issue

3 posts, 0 answers
  1. Simon
    Simon avatar
    8 posts
    Member since:
    Sep 2014

    Posted 23 Aug 2017 Link to this post


    We use several different kendo widgets on the page at the same time. We also have many editable divs. To not flood the DOM, I'm instantiating the editor on focus event for an editable div, and on focusout I'm wanting to destroy the widget and remove the DOM it has created.

    I see that the documentation states that the added DOM must be removed manually. How do I determine which widgets the editor has created, so that I remove only those and none of the other widgets?


  2. Kiril
    Kiril avatar
    1 posts

    Posted 25 Aug 2017 Link to this post


    Since focusout event is attached to all editable divs, the property can be used for determining the widget that needs to be destroyed.

    For convenience, I have created a small dojo example:

    I hope that answers your question.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.

  3. Simon
    Simon avatar
    8 posts
    Member since:
    Sep 2014

    Posted 05 Sep 2017 in reply to Kiril Link to this post

    Hello Kiril,

    Thank you for that suggestion, i'll make use of that. Meanwhile your demo is a good example of another bug for an inline editor which I'll create a separate thread on.

    All the best.

Back to Top