I really enjoy the possibility of testing in your site. The better the demo is , the sooner a visitor gets convinced of the quality of the product.
Let me succest a littel enhancement to the table-demo.
$(function () {
function changeToTable(that) {
var tbl = $("table.fortune500");
tbl.css("display", "");
$("#grid_table").pqGrid("destroy");
$(that).button("option", "label", "Change Table To Grid");
}
function changeToGrid(that) {
var tbl = $("table.fortune500");
var obj = $.paramquery.tableToArray(tbl);
var newObj = { width: 700, height: 400, title: "Grid From Table", flexWidth: true };
newObj.dataModel = { data: obj.data };
obj.colModel[3].dataType='float';
newObj.colModel = obj.colModel;
newObj.pageModel = { rPP: 20, type: "local" };
$("#grid_table").pqGrid(newObj);
$(that).button("option", "label", "Change Grid back to Table");
tbl.css("display", "none");
}
//toggle removed from $ 1.9
$("#pq-grid-table-btn").button().click(function () {
if ($("#grid_table").hasClass('pq-grid')) {
changeToTable(this);
}
else {
changeToGrid(this);
}
});
});