Title: Datagrid destroy Post by: jega 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 Title: Re: Datagrid destroy Post by: battlezad on January 18, 2019, 02:55:33 AM Why to destroy? Why not put in div and hide/show div contents?
Title: Re: Datagrid destroy Post by: jega 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. |