Columns.render getting called multiple times

Columns.render getting called multiple times

moose56moose56 Posts: 7Questions: 3Answers: 0

Hi,

I have table that is loading data via ajax. The data returned from the server only has 2 objects in it.

My table has a single column and the render method is this:

render: function (data, type, row, meta) {
return "test";
}

The 2 rows containing test are rendered correctly, however if I put a console.log line in the render function it is called 4 times.

Why might this be?

Thanks,

David.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,821Questions: 1Answers: 10,951 Site admin
    Answer ✓

    Hi David,

    There are a number of other discussions on this topic where I've replied with an explanation of this. For example see my reply here.

    Allan

  • moose56moose56 Posts: 7Questions: 3Answers: 0

    thanks Allan.

This discussion has been closed.