Hey, You guys did a great job with this grid system. I have tested and/or bought a few others but this is the best one by far.
I had the same issue as user sam.shah. I have the Paramquery Pro evaluation version I downloaded about a week ago. Still learning the API.
Here is my chrome console log and my script for initiating my table (embedded in PHP so ignore the escaped single quotes).
// chrome console log
Uncaught ReferenceError: o is not defined...........................................pqgrid.min.js:4590
at t.paramquery.cRefresh.onWindowResize (pqgrid.min.js:4590)
at dispatch (jquery.min.js:3)
at v.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:3)
at jquery.min.js:4
at Function.each (jquery.min.js:3)
at init.each (jquery.min.js:3)
at init.trigger (jquery.min.js:4)
at HTMLBodyElement.<anonymous> (pqgrid.min.js:4479)
at pqgrid.min.js:218
// my script
$(function () {
$.get(\'grid_json.php\',function(data,status){
var obj = {
numberCell:{resizable:true,title:"#",width:30,minWidth:30},
editable: true,
editor: {type: \'textbox\'},
title: "'.$this->tableTitle.'",
resizable:true,
virtualX: true,
virtualY: true,
hwrap: false,
wrap: false,
toolbar: {
items: [
{
type: \'select\',
label: \'Format: \',
attr: \'id="export_format"\',
options: [{ xlsx: \'Excel\', csv: \'Csv\', htm: \'Html\', json: \'Json\'}]
},
{
type: \'button\',
label: "Export",
icon: \'ui-icon-arrowthickstop-1-s\',
listener: function () {
var format = $("#export_format").val(),
blob = this.exportData({format: format,render: true});
if(typeof blob === "string"){
blob = new Blob([blob]);
}
saveAs(blob, "QC Database '.$this->tableTitle.' partial export."+ format );
}
}]
},
filterModel: { on: true, mode: "AND", header: true },
colModel: '.$this->colModel.',
dataModel: {
data: JSON.parse(data),
location: "remote",
sorting: "local",
paging: "local",
dataType: "JSON",
method: "GET",
curPage: 1,
rPP: 100000,
sortIndx: 1,
sortDir: "up",
getUrl: function () {
return { url: "grid_json.php" }
},
getData: function (dataJSON) {
return { data: dataJSON };
}
}
};
/* paramquery init */
var $grid = $("#grid_container").pqGrid(obj);
}).always(function(){
$("#grid_container").pqGrid("refresh");
});
});