Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To be able to create jqGrid on the page you have to insert an empty <code>&lt;table&gt;</code> element on the place of the page where you want see the grid. The simplest example of the table element is <code>&lt;table id="mygrid"&gt;&lt;/table&gt;</code>.</p> <p>The empty <code>&lt;table&gt;</code> element itself will be <strong>not seen</strong> on the page till you call <code>$('#mygrid').jqGrid({...})</code> and the grid elements like column headers will be created.</p> <p>The method <code>GridDestroy</code> works like <a href="http://api.jquery.com/remove/" rel="nofollow noreferrer">jQuery.remove</a>. It <strong>deletes all elements</strong> which belong to the grid <strong>inclusve</strong> the <code>&lt;table&gt;</code> element.</p> <p>The method <code>GridUnload</code> on the other hand delete all, but the <strong>empty <code>&lt;table&gt;</code> element stay on the page</strong>. So you are able to create new grid on the same place. The method <code>GridUnload</code> is very usefull if you need create on one place different grids depend on different conditions. Look at <a href="https://stackoverflow.com/questions/4232038/jqgrid-add-new-column/4232168#4232168">the old answer</a> with <a href="http://www.ok-soft-gmbh.com/jqGrid/RecreateGrid.htm" rel="nofollow noreferrer">the demo</a>. The demo shows how two different grids can by dynamically created on the same place. If you would be just replace <code>GridUnload</code> in the code to <code>GridDestroy</code> the demo will be not work: after destroying of the first grid no other grids will be created on the same place.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload