Table to jqGrid

Author: Peter Romianowski peter.romianowski@optivo.de

Module name: tbltogrid

Description: Convert existing html table to grid.

Installation: the new release of jquery.jqGrid.js defaults to this module being enabled, so ensure that grid.tbltogrid.js and grid.tbltogrid-min.js are copied to the appropriate folder. If you do not wish to include this function, make the appropriate change to jquery.jqGrid.js.

Calling Convention:

tableToGrid(selector)

where selector(string) can be either the table's class or id

The html table should have the following structure:

<table class="mytable"> (or <table id="mytable">) <tr> <th> header 1 </th> <th> header 2 </th> ... </tr> <tbody> <tr> <td> data 1 </td> <td> data 1 </td> ... </tr> <tr> <td> data 1 </td> <td> data 1 </td> ... </tr> .... </tbody> <table>


  Last Updated: 2/1/2009 | © Tony's jqGrid - a jQuery Plugin, 2010