ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: ayordy67 on November 29, 2016, 02:52:05 am
-
Hi,
I am trying to load the grid using angularjs. I am getting this error when the page loads: angular.js:
TypeError: $ele.pqGrid is not a function
Any ideas what is causing this?
-
Hi ayordy67,
I had the same problem also, and i visited the forum also :), saw your question - had many views, no answer, and i decided digging into the source code a bit, and i found the problem. Im guessing you've already managed by now, since i'm couple of months late :), but still here it is: the name of the object bound (through jquery) to the grid element is actually "paramquery-pqGrid", and not "paramqueryPqGrid" - as it is requested by the .data() method in the 'angular/ng.pqgrid.dev.js' file on 286th line.
Just change that and it will be ok...
-
Oops, i almost forgot, you should then reference the angular 'dev.js' file and not the minnified version, or you can also find this in the minnified file and change it directly there :)