How to take into account "data-order" when added via "createdRow" ?

How to take into account "data-order" when added via "createdRow" ?

blolodevblolodev Posts: 2Questions: 0Answers: 0
edited July 2018 in Free community support

Hello !

How to take into account "data-order" when added via "createdRow" ?

You can see an example here http://live.datatables.net/zecodata/2/edit?html,js,output

The solution has been described here https://datatables.net/forums/discussion/comment/102915/#Comment_102915, but I don't know how to implement it ...

Help please !

Replies

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

    Hi @blolodev ,

    If you're starting with the empty table, then it would be better to pass in orthogonal objects in the Ajax response - there's some some details here: https://datatables.net/manual/data/orthogonal-data#API-interface .

    The attributes are slow, so it's best not to shoehorn them in later unless you have good reason. If you want to change the search (as in your example from "Tokyo" to "Japan"), you can do that far more efficiently in the columns.render,

    Cheers,

    Colin

  • blolodevblolodev Posts: 2Questions: 0Answers: 0

    Thanx a lot Colin !

This discussion has been closed.