Title: Datagrid, destroy memory Post by: maue75 on November 04, 2015, 05:32:42 PM Hi.
I use ajax to load differents datagrid. I wish to use the command "destroy" to prevent errors. But I dont know how use it on datagrid. ( I saw similar on combotree: $('#cc').combotree('destroy'); or on tooltip: $(this).tooltip('destroy'); but it doesnt work on datagrid: $("#datagrid").datagrid("destroy"); ) So, the ask is: How to destroy memory on datagrid? Title: Re: Datagrid, destroy memory Post by: stworthy on November 04, 2015, 06:04:32 PM To destroy a datagrid, call 'getPanel' method to get the datagrid panel and then call 'destroy' on it.
Code: var p = $('#dg').datagrid('getPanel'); |