I want to enable sorting but group multiples row into one in the same time. So that they will always sorted by in groups. Like row of group 1 will stick with group 1 and so on..
I want to enable sorting but group multiples row into one in the same time. So that they will always sorted by in groups. Like row of group 1 will stick with group 1 and so on..
http://live.datatables/wuwaxiqe/1/edit
Share Improve this question edited Mar 15, 2018 at 17:57 Gyrocode. 59k16 gold badges157 silver badges192 bronze badges asked May 15, 2016 at 15:45 Jamie JordanJamie Jordan 2511 gold badge5 silver badges16 bronze badges1 Answer
Reset to default 6Use orderFixed
option to always apply ordering to a certain column before/after any other columns.
For example:
var table = $('#example').DataTable({
"orderFixed": {
"pre": [ 2, 'asc' ]
}
});
See updated example for code and demonstration.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745469073a4629049.html
评论列表(0条)