How could i see all rows of my table in Dom?

How could i see all rows of my table in Dom?

harender_24harender_24 Posts: 9Questions: 3Answers: 0

I have applied data table on my table and it is working fine. Please check CodePen's link but it is not loading all the rows(57) in Dom because of Pagination. i have a situation where i need the pagination and want all rows in dom too. Disabling the paging is not an option.

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi harender_24,

    What is it exactly that you want to do? Unfortunately this is not possible in DataTables.

    If you want to get all of the nodes then you can use rows().nodes() to get these.

    Hope this helps,

    Sandy

  • harender_24harender_24 Posts: 9Questions: 3Answers: 0

    Hi Sandy
    Right now the tbody contains only 10 rows. Is there any way we can load all the rows in DOM without removing pagination?

  • kthorngrenkthorngren Posts: 20,296Questions: 26Answers: 4,768

    Right now the tbody contains only 10 rows. Is there any way we can load all the rows in DOM without removing pagination?

    By pagination do you mean server side processing? If you have serverSide: true then the server script will return only the rows for the page. However if you disable server side processing then all the rows will be returned to the client but you can still have paging as true to show 10 per page.

    Kevin

This discussion has been closed.