Is Editor 1.9.7 compatible with datatables 2.2.2?
Is Editor 1.9.7 compatible with datatables 2.2.2?
Hi, Allan,
After I upgraded my datatables.js from v1.10.24 to v2.2.2(with jQuery 3.7.0 included), my code using Editor v1.9.7 doesn't work anymore. I got error
jQuery.Deferred exception: Cannot read properties of undefined (reading '_fnSetObjectDataFn') TypeError: Cannot read properties of undefined (reading '_fnSetObjectDataFn')
and
Uncaught TypeError: Cannot read properties of undefined (reading '_fnSetObjectDataFn')
at new Editor.Field (dataTables.editor.js:253:32)
at Editor.add (dataTables.editor.js:1947:14)
at Editor.add (dataTables.editor.js:1923:9)
at Editor._constructor (dataTables.editor.js:4511:14)
at new Editor (dataTables.editor.js:80:7)
at HTMLDocument.<anonymous>
at e (dataTables.min.js:14:32925)
at t (dataTables.min.js:14:33301)
If they are not compatible, then I will buy an upgrade license for Editor v2.4.0.
Thanks!
Shumin
This question has accepted answers - jump to:
Answers
1.9.7 is not compatible with Datatables 2. I believe the first version to support DT 2 is 2.3.0. The latest version is 2.4.0 which can be downloaded here.
Kevin
Hi Shumin,
No - sorry, Editor 1.x will not work with DataTables 2. It used private APIs which were removed in DataTables 2. Those APIs are now public and documented, but with different names and access.
Allan
Kevin and Allan: Thanks a lot! I will purchase the 2.4 upgrade now.
Best,
Shumin
Sorry, I forgot to ask one more thing: if I upgrade the Editor js library to 2.4 on the client side, would it work with the v1.9.4 server side DataTables-Editor-Server.dll? If not I will upgrade both.
Thanks again!
It isn't something I've tested - I only test the server-side libraries that matches the version of the client-side together since they are released together. However, the data protocol hasn't changed, so I suspect it will work. You wouldn't be able to take advantage of new features such as
autocomplete
though, or any bug fixes that have been addressed.Allan