How to destroy all controls inside kendo window

1 Answer 83 Views
Menu Window
chien
Top achievements
Rank 1
chien asked on 03 Jun 2023, 04:15 AM

Hi

I use a Kendo window and load the content through AJAX from a partial view.

The partial view contains Kendo controls such as DropDownList, ContextMenu, etc.

How can I remove all the controls (destroy all UI, events, etc.) inside the partial view when I close the Kendo window

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 07 Jun 2023, 11:51 AM

Hi Chien,

Thank you for the details provided.

In order to achieve the desired behavior, I would recommend using the jQuery "empty" method:

Use the id of the Window as a Jquery selector and empty the content of the element by using the above method.

I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.

Tags
Menu Window
Asked by
chien
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or