ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: JoeTexan1962 on February 20, 2021, 06:50:50 am
-
I copied the inline editing demo javascript code almost verbatim and I have it populating with data from my REST API. However, the console shows e.addEventListener is not a function when the rows are populated and I believe this is while adding the event listener to the Edit / Delete buttons. The Edit / Delete buttons don't work when pressed.
jquery-3.5.1.min.js:2 jQuery.Deferred exception: e.addEventListener is not a function TypeError: e.addEventListener is not a function
at $.<computed>.<computed>.setup (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:72446)
at Object.add (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:41504)
at $.<computed>.<computed>.<anonymous> (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:40138)
at Function.each (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:2976)
at S.fn.init.each (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:1454)
at ke (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:40114)
at S.fn.init.on (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:46741)
at String.<anonymous> (https://localhost:44331/Scripts/jquery-ui-1.12.1.custom/jquery-ui.js:622:13)
at Function.each (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:3026)
at $.<computed>.<computed>._on (https://localhost:44331/Scripts/jquery-ui-1.12.1.custom/jquery-ui.js:594:5) undefined
Uncaught TypeError: e.addEventListener is not a function
at $.<computed>.<computed>.setup (jquery-3.5.1.min.js:2)
at Object.add (jquery-3.5.1.min.js:2)
at $.<computed>.<computed>.<anonymous> (jquery-3.5.1.min.js:2)
at Function.each (jquery-3.5.1.min.js:2)
at S.fn.init.each (jquery-3.5.1.min.js:2)
at ke (jquery-3.5.1.min.js:2)
at S.fn.init.on (jquery-3.5.1.min.js:2)
at String.<anonymous> (jquery-ui.js:622)
at Function.each (jquery-3.5.1.min.js:2)
at $.<computed>.<computed>._on (jquery-ui.js:594)
-
There is no such issue with inline editing w.r.t jQuery 3.5.1 https://jsfiddle.net/x6d04k8y/
Please share a jsfiddle if still sharing issues.
-
JSFiddle: https://jsfiddle.net/JoeTexan1962/4eLto68c/11/
I'm sure there's something simple I'm doing wrong, but I can't put my finger on it.
-
you are facing issues because your source code seems to be taken from the demos of free version https://paramquery.com/demos
Source code for free version examples is not fully compatible with Pro version.
Please follow the examples of Pro version here: https://paramquery.com/pro/demos
-
Thank you. I didn't notice that I was looking at the demo for the free version. That fixed the problem.