I'm using jquery mobile with some controls of kendo ui (either kendo mobile isn't out yet).
Jquery Mobile use AJAX to load the content of the next page and replaces the content of the div with the attribute data-role="page".
This is fine and works great, but with the time the page gets slower and slower. the reason for this is, that kendo ui creates elements in the body of the document, and those elements are never removed... so the page dom increases with every page load...
Is there a reason to destroy existing controls so that they remove the generated content in the body? Or can I define in which element kendo ui will generate the hidden divs?
Thank you
Micha
Jquery Mobile use AJAX to load the content of the next page and replaces the content of the div with the attribute data-role="page".
This is fine and works great, but with the time the page gets slower and slower. the reason for this is, that kendo ui creates elements in the body of the document, and those elements are never removed... so the page dom increases with every page load...
Is there a reason to destroy existing controls so that they remove the generated content in the body? Or can I define in which element kendo ui will generate the hidden divs?
Thank you
Micha
5 Answers, 1 is accepted
0
Hi Micha,
Currently Kendo UI widgets do not have destroy methods, though we are planning to implement them. In your case (I guess you had in mind DropDownList, ComboBox or AutoComplete widgets), you will have to hunt down the dropdowns yourself and remove them from the DOM - look for #id-list wrapped in a .k-animation-container (or not if it wasn't opened at least once).
Regards,
Kamen Bundev
the Telerik team
Currently Kendo UI widgets do not have destroy methods, though we are planning to implement them. In your case (I guess you had in mind DropDownList, ComboBox or AutoComplete widgets), you will have to hunt down the dropdowns yourself and remove them from the DOM - look for #id-list wrapped in a .k-animation-container (or not if it wasn't opened at least once).
Regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 2
answered on 13 Apr 2012, 01:18 PM
Hi, Kamen!
i hunting "k-animation-container" and removing it like that:
but when i trying to create kendoDatePicker instance next time - it becomes frozen as it desribed here: http://www.kendoui.com/forums/ui/date-time-pickers/datepicker-becomes-static.aspx
Could you please point me to some workarounds on this bug?
i hunting "k-animation-container" and removing it like that:
$(
"#datePicker"
).data(
'kendoDatePicker'
).dateView.popup.wrapper.remove();
but when i trying to create kendoDatePicker instance next time - it becomes frozen as it desribed here: http://www.kendoui.com/forums/ui/date-time-pickers/datepicker-becomes-static.aspx
Could you please point me to some workarounds on this bug?
0
Igor's discussion continues at:
http://www.kendoui.com//forums/ui/date-time-pickers/datepicker-becomes-static.aspx
Greetings,
Dimo
the Telerik team
http://www.kendoui.com//forums/ui/date-time-pickers/datepicker-becomes-static.aspx
Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Igor
Top achievements
Rank 2
answered on 13 Apr 2012, 02:26 PM
Dimo, thanks, i know ;)
0
Chad
Top achievements
Rank 1
answered on 14 Apr 2012, 08:08 AM