DataTable creating duplicate rows

DataTable creating duplicate rows

slade867slade867 Posts: 1Questions: 1Answers: 0

I have a List full of objects and am using a foreach loop. The table looks fine without the plug in but as soon as I add in the plug in, the data duplicates as if I had multiple objects with the same data in the List (I don't). The JQuery to add the template is pretty straight forward.

$('#notesTable').DataTable({
"paging": false,
"order": [[0, "desc"]],
});

Anyone have any idea why I would be seeing the same rows multiple times?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @slade867 ,

    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

This discussion has been closed.