Error - oDTSettings is not defined

Error - oDTSettings is not defined

bjnoelbjnoel Posts: 2Questions: 0Answers: 0
edited March 2012 in Bug reports
I'm getting the error: oDTSettings is not defined

I only get the error when using the option "aiOrder" to define a column re-order. I may be doing something wrong but I'm not able to tell. Please take a look at the debug report.

Debug Report:
http://debug.datatables.net/odubuv

Thanks!

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Oops - the error message in ColReorder had a bug in it :-(. You should have been getting this error message:

    > ColReorder - array reorder does not match known number of columns. Skipping.

    Fix for that just committed.

    I think the problem is with this line of your init:

    > [1, 2, 3, 4, 6, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]

    It looks like you are using visible indexing, rather than array indexing (i.e. start at 0, not 1). So just decrement everything by 1 and that should work.

    Allan
  • bjnoelbjnoel Posts: 2Questions: 0Answers: 0
    You are correct. I changed the index to start at 0 instead of 1 and it works properly now.

    Thanks!
This discussion has been closed.