ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: hirehop on November 13, 2025, 04:54:24 pm

Title: Error: "no such method 'exportData' for pqGrid widget instance" when calling exp
Post 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:
Code: [Select]
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.
Title: Re: Error: "no such method 'exportData' for pqGrid widget instance" when calling exp
Post by: paramvir on November 13, 2025, 07:46:59 pm
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.
Title: Re: Error: "no such method 'exportData' for pqGrid widget instance" when calling exp
Post by: hirehop on November 13, 2025, 08:28:13 pm
Version 11
Title: Re: Error: "no such method 'exportData' for pqGrid widget instance" when calling exp
Post by: paramvir on November 13, 2025, 10:29:44 pm
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).

Code: [Select]
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).
Title: Re: Error: "no such method 'exportData' for pqGrid widget instance" when calling exp
Post by: hirehop on November 14, 2025, 05:05:22 pm
Thanks , it works