dataTable().row() not a function
dataTable().row() not a function
Hi all, thank you in advance for any support.
I have the following scenario: one datatable that loads data from oData with a custom function (i.e. fnServerData) to manage odata uri parameters ($filter, $sort, ...).
When I tryed to manage the row click to get the content of a single row I got this error:
"Uncaught TypeError: $(...).dataTable(...).row is not a function" (I'm followng the documentation example here: https://datatables.net/examples/api/select_single_row.html )
Am I missing something or am I doing some mistake?
Thank you
Answers
Without seeing your code, who knows?
However, the example initialises using "DataTable" whereas your error message says "dataTable". Spot the difference. Perhaps that's it.
Yes, it was the case of function. I didn't notice it, newbie mistake.
(about the code,it is a lot of lines, I didn't want to flood the forum with a huge post as my debut.
Thank you a lot
Not just newbie - one of the recurring features of my coding history :-(