EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 07, 2024, 09:44:59 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
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid destroy (Read 3968 times)
jega
Full Member
Posts: 190
Datagrid destroy
«
on:
January 18, 2019, 02:52:16 AM »
Have this
<table id="dg"></table>
On click showButton
var dg = $('#dg').datagrid({
url:'getfromdb.asp?st=logon',
columns:[[
{field:'logonUser',title:'BrugerID',width:100},
{field:'counter',title:'Antal',width:100},
{field:'lastLogon',title:'Seneste logon',width:120}
]]
})
But how to have a closeButton to destroy the datagrid, to later create it again with showButton
Logged
battlezad
Newbie
Posts: 44
Re: Datagrid destroy
«
Reply #1 on:
January 18, 2019, 02:55:33 AM »
Why to destroy? Why not put in div and hide/show div contents?
Logged
jega
Full Member
Posts: 190
Re: Datagrid destroy
«
Reply #2 on:
January 18, 2019, 03:06:12 PM »
Yes it can be done with div, but if it could be destroyed and not use any memory, i think.
The panel in datagrid can be destroyed, so far so good, but then i can't create the datagrid again, only after refresh page.
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...