filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Not working with DataTable Server side resource load, Pagination and updation. #284

Closed darkknight13 closed 5 years ago

darkknight13 commented 7 years ago

In my datatable data is loading via ajax from serverside. After first data load I am calling - $( document ).trigger( "enhance.tablesaw" ) and its working fine.

But when I am sorting and moving to next page via pagination, Labels are not showing. after new data load via pagination or sorting, I'm doing - $('#example').tablesaw().data( "tablesaw" ).refresh();

erakashpatel commented 7 years ago

Hello, Can you please provide me demo? so i can check it what is the problem?

Thanks akashpatel

chesterlau commented 7 years ago

You can hook up the tablesaw refresh when pagination buttons are clicked.

For example: $(".pagination").click(function () { $('#myTable').tablesaw().data("tablesaw").refresh(); });

This will display all the labels when pagination occurs.

zachleat commented 6 years ago

This needs a reduced test case please!

zachleat commented 5 years ago

This is an automated message to let you know that this issue requires additional input from the original poster and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.

Do not let the issue’s closing deter you. After you’ve supplied the required information, the issue will be reopened. Thanks!

namu2896 commented 5 years ago

please help me to add pagination to my data table, I don't search fields in search box of data table and also unable to see the page number. please any one can help me. its very urgent