Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Actualización de DataTable a 1.11 destruir error de retorno

Mi aplicación funciona bien en la versión 1.10.24 y 1.10.25.

Recientemente estoy tratando de actualizar paquetes y me mudé a 1.11.3 y estoy empezando a recibir un error.

Mi código es bastante simple. Pero lógica; es que tengo un botón Start Process , cuando se presiona, ciertos datos se procesan en el servidor y la respuesta llega a través de un socket web que se agrega a la tabla usando table.add() , esto funciona bien la primera vez. Pero el usuario puede presionar el botón nuevamente para reprocesar los datos en el servidor. Para esto, estoy limpiando la mesa.

por

 $('#testGrid').DataTable().destroy();

Estoy recibiendo el siguiente error

 dataTables.colResize.js:262 Uncaught TypeError: Cannot read properties of null (reading 'dt') at ColResize._fnStateSave (dataTables.colResize.js:262) at jQuery.fn.init.<anonymous> (dataTables.colResize.js:249) at jquery.dataTables.js:6754 at Function.map (jquery.js:467) at _fnCallbackFire (jquery.dataTables.js:6753) at _fnSaveState (jquery.dataTables.js:6405) at _Api.<anonymous> (jquery.dataTables.js:8815) at _Api.iterator (jquery.dataTables.js:7145) at _Api.<anonymous> (jquery.dataTables.js:8804) at _Api.visible (jquery.dataTables.js:7312)

por

 let testGrid = $('#testGrid').DataTable(); testGrid.clear().draw();

No hay ningún error, y después de presionar el botón de proceso, aparece un error tan pronto como intento agregar datos

 Uncaught TypeError: Cannot set properties of undefined (setting '_aData') at _Api.<anonymous> (jquery.dataTables.js:8278) at _Api.data (jquery.dataTables.js:7312) at results-timeline-grid.js:254 at arrayEach (_arrayEach.js:16) at Function.forEach (forEach.js:43) at Class.updateDataSource (results-timeline-grid.js:235) at Class.onDataUpdated (data-grid.js:31) at sendEvent (index.js:219) at Class.trigger (evented.js:113) at Class.publish (event-bus.js:11)

Como se indicó anteriormente, mi código funciona bien en 1.10.24, 1.10.25

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

También estaba usando otros complementos, que no estaban actualizados. Después de actualizar esos complementos, se resuelve

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!