Hank Gay Hank Gay - 2 months ago 18
jQuery Question

What's the closest jQuery approximation to YUI's DataTable?

My two highest priorities are progressive enhancement and inline editing. I've found progressive enhancement (DataTables) and inline editing (jqGrid), but not both. Support for jQuery UI themes would be nice, but is a lower priority.

UPDATE: Here's an example of what I'm imagining the solution would resemble:

<table summary="A table full of example tabular data">
<caption>My Table to Progressively Enhance</caption>
<thead>
<tr>
<th id="colA">Column A</th>
<th id="colB">Column B</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="colA">foo</td>
<td headers="colB">bar</td>
</tr>
<tr>
<td headers="colA">argle</td>
<td headers="colB">bargle</td>
</tr>
</tbody>
</table>

… insert jquery datatable stuff here …

<script type="text/javascript">
progressivelyEnhanceMyTable();
</script>

Answer

With the latest release of jqGrid, we now get tableToGrid, which solves the grid-from-markup problem quite nicely.

Comments