Search field and paging does not work

Search field and paging does not work

Valentin_GasenkoValentin_Gasenko Posts: 2Questions: 1Answers: 0

Hi there,
I have a table, I'll try to set the DataTable function to it.
But the search functionality doesn't retrieve through the data. Also, paging does not work.
Screenshot at the attach.
I use the most common code, just:

$('#activitiesTable').DataTable();

Help, please, what am I doing wrong?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 21,325Questions: 26Answers: 4,949

    Are you adding rows after Datatables initialization? If so see this FAQ.

    Kevin

  • Valentin_GasenkoValentin_Gasenko Posts: 2Questions: 1Answers: 0

    Kevin, thank you for your answer!
    No, firstly I add rows into my table, and after that I call $('#activitiesTable').DataTable();

Sign In or Register to comment.