ParamQuery grid support forum
General Category => ParamQuery Pro Evaluation Support => Topic started by: sergs1207 on June 16, 2014, 09:57:30 pm
-
Hi,
I used to create non-editable grid - and it worked fine
files1.zip
https://docs.google.com/file/d/0ByksSZFpv9hNamFPSjRneF9EZmc/edit
After that I tried another - Inline - Row editing - and grid is not shown at all, just plank page
files2.zip
https://docs.google.com/file/d/0ByksSZFpv9hNa3ZwQUFUTXVqcTQ/edit
Help me with that stufff, please, killed whole night)
-
Please open your browser console. There you would find 2 errors in the crud.js file.
if (rowData[recIndx] == null) {
//url to add records.
url = "crud.php?pq_add=1";for PHP //error here
}
else {
//url to update records.
url = "crud.php?pq_update=1";for PHP //and error here
}
it should be // after the ;
if (rowData[recIndx] == null) {
//url to add records.
url = "crud.php?pq_add=1"; //for PHP
}
else {
//url to update records.
url = "crud.php?pq_update=1"; //for PHP
}
-
These 2 errors were fixed, but grid still doesn't appear
-
That calls for little troubleshooting on your part.
1) open url ending with crud.php directly in the browser and note down the output.
2) open your browser's console and look for errors.
3) implement dataModel.error callback
error: function(jqXHR, textStatus, errorThrown){
alert(textStatus);
},