A Light weight plugin to expand collapse HTML table also works on top of jqGrid.
download expandCollapse_1.0.2 and run default.html inside demo folder
##How to use: Call the plugin on the HTML table elements to see the effect.
##Options:
$(selector).expandCollapse(options);
$('#myHTMLTable').expandCollapse({
colNumber: 1,
isjqGrid: false,
isHTMLTable: true,
showEmptyCell: true
});will group all the rows based on the data of Collumn 1 "colNumber: 1".
##Effects: You cand see the data of collumn 1 getting grouped and with expand collapse button.
##Additional:
You can call expandAll , collapseAll to expand all or collapse all.
$('#myHTMLTable').expandAll();
$('#myHTMLTable').collapseAll();