How to take into account "data-order" when added via "createdRow" ?
How to take into account "data-order" when added via "createdRow" ?
blolodev
Posts: 2Questions: 0Answers: 0
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 !
This discussion has been closed.
Replies
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
Thanx a lot Colin !