ParamQuery grid support forum
General Category => Bug Report => Topic started by: switchautomation on July 31, 2018, 03:52:02 pm
-
Hi
How to load pqGrid over RequireJS?
There are some errors on loading in current version
-
You need to add shim for pqgrid ( in order to mention its dependencies ) in require.config
shim: {
//more dependencies required e.g. jszip if you use Excel import / export feature of pqgrid.
pqgrid: [ 'jquery', 'jquery-ui', .... ]
}
In your application:
define([ 'pqgrid' ], function() {
//initialize pqgrid.
});
-
I tested it loading with requirejs, and I faced an error.
Thanks for reporting issue, it would be fixed in next version, hopefully by end of this month.
-
This is fixed in v5.3.0