.cell().draw() doesn't seem to work. Is anyone else experiencing this?

.cell().draw() doesn't seem to work. Is anyone else experiencing this?

albertkalbertk Posts: 1Questions: 1Answers: 0

DT ver. 1.10.2
I can't get .draw() working on either FireFox or Chrome on my datatable, can someone point me to the right direction please.

I have only 1 datatable on my MVC app and it has a ".dataTable" class in the CSHTML.
From my .js I call this line when a button is click:

$(".dataTable").DataTable().cell(tblRI, hrPrButtonElement).data("P").draw();

tblRI and hrPrButtonElement are passing in 2 integer
I can confirm from the element inspector that the data in the cell is changed to 'P'.
However, the HTML doesn't get refresh and so it still shows the old data on the HTML.

I try calling
$(".dataTable").DataTable().draw();

from the debugging console but the HTML still doesn't get refresh.

Any help is appreciated.
Thank you

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    First I would suggest using 1.10.5 the latest release. Then if you could link to a test case showing the issue that would be very useful.

    Thanks,
    Allan

  • TyreLeverTyreLever Posts: 1Questions: 0Answers: 0

    I had the same problem only on some tables of my project. After investigation i figured it out why.
    Tables that were not affected by invikong DataTable().draw() where the one i did not specified scrollY in config object of datatable.

    Adding this parameters solved my problem.
    Hope this can help.

This discussion has been closed.