TypeError: oCol is undefined on row click

TypeError: oCol is undefined on row click

thetomthetom Posts: 9Questions: 0Answers: 0
edited December 2012 in DataTables 1.9
Hello everyone!
I'm having a problem with a table of my project, the #grdInviTable
Here's the debugger link: http://debug.datatables.net/uqaqic
And here's datatables live: http://live.datatables.net/osacab/edit
I just removed 2 columns in the html thead and now when i click on the row now i get "TypeError: oCol is undefined" .
I really can't figure out why. Can someone please help me? Thank you in advance.

Replies

  • thetomthetom Posts: 9Questions: 0Answers: 0
    I fixed that on my own.
    The problem was that when i was trying to get the id of the document pointed by the row i was with reading the 8th column. Then i removed 2 column, so should read the 6th column and not the 8th.
    This discussion can be closed. thank you!
  • dave_riderdave_rider Posts: 1Questions: 0Answers: 0
    FYI, I was encountering a similar error when I didn't have a column header cell for every column, including the default "Show", "Edit", and "Delete" action "columns" in a Rails scaffolding-generated view. Adding empty tags for each of those actions fixed the error, though it's a bit silly for them to be sortable.
  • thetomthetom Posts: 9Questions: 0Answers: 0
    Could be a better solution to define columns and data corrispondence on aoColumns property.
This discussion has been closed.