Support for "legacy" functionality

Support for "legacy" functionality

plcplc Posts: 22Questions: 4Answers: 0

Hi,

I was struggling earlier today to set my initial datatable sort order to nothing (i.e. let SQL Server control the initial order). I set the order to "order": [] - as suggested in the latest documentation here - https://datatables.net/reference/option/order, however this didn't seem to work properly on my datatable which has only two columns (only one of which contains data).

I then discovered the page https://datatables.net/forums/discussion/1399/how-to-no-sort-by-default - which contains a "legacy" notice. The suggestion (by Allan) of adding the "bSort": false switch works in my code.

This has me wondering - how many other features now referred to as "legacy" still work? Are there any plans for some or all of these to be deprecated in a future release?

Thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    Answer ✓

    The conversion document might be of particular interest here. Basically all of the camelCase options will not work in 1.9-.

    Almost all of the legacy options will still work - only two will not (bScrollInfinite and fnRender).

    The old Hungarian style will continue to be supported for all 1.x releases (DataTables simply converts from one form to the other). However, v2 (whenever that happens) will drop the legacy style, and all of the documentation now refers to the current preferred camelCase style.

    Allan

  • plcplc Posts: 22Questions: 4Answers: 0

    A-ha!! Superb, thanks Allan.

This discussion has been closed.