ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: hirehop on November 13, 2025, 04:54:24 pm
-
Hello,
I am getting the following error when trying to export a pqGrid:
Uncaught Error: no such method 'exportData' for pqGrid widget instance
The error occurs on this line:
var blob = $("#grid").pqGrid("exportData", {
filename: "Report",
format: "xlsx",
sheetName: "Sheet1"
});
What I have checked:
The grid loads and works normally (sorting, paging, etc.).
The error happens only when calling exportData().
It appears that the exportData method is not available on my pqGrid instance.
-
Please confirm your version of pqgrid.
Have you assigned exportData to grid instance anywhere in your code. Check for exportData string in your entire code.
-
Version 11
-
In version 11.0.0, the exportData method is now asynchronous, so you need to handle it using async/await (or .then() if you prefer).
var grid = $("#grid").pqGrid('instance');
var blob = await grid.exportData({
filename: "Report",
format: "xlsx",
sheetName: "Sheet1"
});
For more details, please refer to the Upgrade Guide (https://paramquery.com/pro/upgrade/index).
-
Thanks , it works