How to use fnDisplayStart in DataTables v1.10.7

How to use fnDisplayStart in DataTables v1.10.7

macericmaceric Posts: 2Questions: 1Answers: 0
edited June 2015 in Free community support

Hello, I am a newbie for DataTables. And I searched a lot of times about fnDisplayStart.js plugin.
But it is deprecated and can be used only with DataTables 1.9 as I tested. Actually, if I use $(selector).dataTable(), it (fnDisplayStart) works fine.
But I don't want to use this, I want to use $(selector).DataTable().and all plug-ins only work with DataTables 1.9. :'(
So can you guide me some?

Thanks in advance,,

Answers

  • allanallan Posts: 61,903Questions: 1Answers: 10,148 Site admin

    Use page() to set the page in 1.10. There is currently no option to set a start point to a random row - it is all page based in 1.10.

    Allan

  • macericmaceric Posts: 2Questions: 1Answers: 0

    I already used it.
    for example :
    var tb = $("#list").DataTable();
    tb.page(2).draw(false) it doesn't work. But, if I use with this param
    tb.page('next').draw(false) it works.
    Note: I use with ajax that response data from server.

  • allanallan Posts: 61,903Questions: 1Answers: 10,148 Site admin

    Seems to work okay for me: http://live.datatables.net/xoferopo/1/edit .

    Can you please link to a test case showing the issue so it can be debugged.

    Allan

This discussion has been closed.