Using Ajax deferRender and lengths do not work.

Using Ajax deferRender and lengths do not work.

wbyerswbyers Posts: 48Questions: 12Answers: 1

Hello I'm using datatables for a project. As a part of this project I am using an api that gets data and puts it into the table.
AT the moment I cannot search or move forward because the changes don't load.
See here: http://usasportgroup.com/api3/teamtraining/testTable.html. Does anyone know what I can do.

Replies

  • kthorngrenkthorngren Posts: 21,309Questions: 26Answers: 4,947

    You have serverSide enabled but your server script is returning all rows instead of the 10 rows asked for in the request. Not sure what you are using for your server side script but it doesn't appear to accept the server side parameters sent to it.

    You also have deferRender enabled. I think this is only effective with client side processing. Since you have 4000 rows maybe you can turn serverSide off and leave deferRender on and see if you have the performance you need.

    Otherwise, if you need serverSide then you will need either the Datatables supplied scripts or you will need to develop your own.

    Kevin

  • wbyerswbyers Posts: 48Questions: 12Answers: 1

    Thanks. I'll give it a shot

  • wbyerswbyers Posts: 48Questions: 12Answers: 1

    Yeah that did the trick, Thanks

This discussion has been closed.