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

How do I un-kendo a div

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 23 Aug 2011, 02:37 PM
I have a "View" switcher which toggles the data in a div between a kendo grid and a jquery template view (listview kindof)

(calling a .empty() before the switch)

But when I switch to the jQuery template the div is still decorated with the kendo elements.  So extra jQuery to remove it all, or is there a method to do this already?...do you see issues with this scenario?

Steve

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Aug 2011, 07:07 AM
Hi Steve,

 Currently there is no way to remove the kendo object from a DIV. Perhaps you can just add a nested div and make the grid out of it. Then use empty() for the parent div to clear it.

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!
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Atanas Korchev
Telerik team
Share this question
or