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

Popup windows do not get removed from DOM

10 Answers 357 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 22 May 2012, 01:26 PM
When I use popup editing, the dialog window created for the editing is appended to the DOM.  If I do several rename/delete/add actions there are several k-window divs still attached to the DOM.  It's unlikely to cause a problem, but I find it unexpected.

10 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 May 2012, 08:22 AM
Hi Richard,

 I agree that this is unexpected. We will try to fix this issue for the next internal build. 

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Brannon
Top achievements
Rank 1
answered on 15 Oct 2012, 08:47 PM
Any update on this issue.  I am experiencing the same issue.
0
Atanas Korchev
Telerik team
answered on 16 Oct 2012, 07:13 AM
Hi,

 This issue has been addressed in our latest official release - Q2 2012 Service Pack 1.

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Brannon
Top achievements
Rank 1
answered on 16 Oct 2012, 02:39 PM
I am using version 2012.2.913.340 and I still see the behavior.  We have a window that is created in a partial view server-side using the MVC Helpers.  What we are seeing is that each time the partial view is reloaded on the client a new window element is being appended to the DOM and the old element is not being removed.  Effectively we get multiple instances of the window in the DOM.
0
Atanas Korchev
Telerik team
answered on 16 Oct 2012, 03:34 PM
Hello,

 I can't reproduce this behavior in our popup editing online demo: http://demos.kendoui.com/web/grid/editing-popup.html Does it work as expected at your side? I've checked the DOM using the browser's developer toolbar.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Brannon
Top achievements
Rank 1
answered on 16 Oct 2012, 04:19 PM
Sorry, my issue is not occuring with the grid.  I'm using the KendoWindow widget in a partial view.  That's where I'm seeing the issue.

We have a partial view that contains a window widget created using the razor helper.  When the partial view gets replaced in our main view I'm seeing duplicate window widgets in the DOM.
0
Atanas Korchev
Telerik team
answered on 17 Oct 2012, 05:39 AM
Hi,

 This would happen if you don't call the window's destroy method.

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
rufino
Top achievements
Rank 1
answered on 17 Oct 2012, 07:35 AM
The issue on several k-window divs still attached to the DOM was already resolved from the latest release. Now I added a calendar/datepicker widget to the popup window and noticed that k-calendar-container also appends multiple times to the DOM. 
0
Brannon
Top achievements
Rank 1
answered on 17 Oct 2012, 02:56 PM
Isn’t 2012.2.913.340 the latest release?  I’m still seeing the issue with k-window divs.
0
Atanas Korchev
Telerik team
answered on 17 Oct 2012, 03:52 PM
Hello,

 Do you call the destroy method of the window? Remember that this thread was originally opened regarding the popup editor of the grid. You should call the destroy method of the window to cleanup.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Brannon
Top achievements
Rank 1
rufino
Top achievements
Rank 1
Share this question
or