Author Topic: Getting error while editing cell  (Read 2311 times)

sahil.b

  • Newbie
  • *
  • Posts: 3
    • View Profile
Getting error while editing cell
« on: July 27, 2018, 05:55:29 pm »
Hi,

I am using the pq-grid v5.1. On triggering save button i need to get all the changed rows with the help of the $('.selector').pq('getChanges') method and trackModel : { on: true } and  recIndx: "id".

After that i am not able to update the grid. Error is coming when i color the row whole row by col[index].pq_cellattr

Please help and refer to the error below.

Uncaught TypeError: Cannot read property 'split' of undefined
    at e.(:3000/anonymous function).(anonymous function).l.addClass (http://localhost:3000/js/pqgrid.min.js:11:4061)
    at e.cUCData.update (pqgrid.min.js:13)
    at e.(:3000/anonymous function).(anonymous function).l._digestUpdate (http://localhost:3000/js/pqgrid.min.js:10:22060)
    at e.(:3000/anonymous function).(anonymous function).l._digestData (http://localhost:3000/js/pqgrid.min.js:10:21735)
    at e.(:3000/anonymous function).(anonymous function).n.updateRow (http://localhost:3000/js/pqgrid.min.js:13:19267)
    at e.(:3000/anonymous function).(anonymous function).l.saveEditCell (http://localhost:3000/js/pqgrid.min.js:10:19417)
    at HTMLDivElement.<anonymous> (pqgrid.min.js:10)
    at HTMLDivElement.dispatch (jquery.min.js:2)
    at HTMLDivElement.u (jquery.min.js:2)


Thanks,
Sahil
« Last Edit: July 27, 2018, 05:57:18 pm by sahil.b »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Getting error while editing cell
« Reply #1 on: July 30, 2018, 03:23:19 pm »
Please share the relevant code where
Quote
color the row whole row by col[index].pq_cellattr

or better share a jsfiddle.
« Last Edit: July 30, 2018, 03:24:50 pm by paramquery »