EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 03:05:01 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Datagrid, destroy memory
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid, destroy memory (Read 8498 times)
maue75
Newbie
Posts: 1
Datagrid, destroy memory
«
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?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Datagrid, destroy memory
«
Reply #1 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');
p.panel('destroy');
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...