Property 'order' in table configuration is broken

Property 'order' in table configuration is broken

jlsimonjlsimon Posts: 1Questions: 1Answers: 0

We have a number of very complicated data tables. One of the requirements is, that we have a sort direction that is configured at the time of instantiation for multiple columns. Setting the order parameter on initialising the table results in ALL BUT THE LAST item in the array to be completely ignored.

Furthermore, the only way to force datatable to accept the order is to set it via the api before the first rendering. However, this presents with a new bug: the odd/even colouring of the rows is broken, resulting in an ugly zebra effect.

So basically all ways of using order with more than one item in the array seem to be broken?

Answers

  • tangerinetangerine Posts: 3,342Questions: 35Answers: 394

    What does your DT initialisation code look like?
    Sounds like faulty loop logic, if that's how your array is built.

This discussion has been closed.