.draw() API is not resetting ordering to default
.draw() API is not resetting ordering to default
nipun_tulsyan
Posts: 5Questions: 1Answers: 0
in General
I have added default sorting on column 7 during initialisation of datatable. Now if change the sorting to column 2 and redraw the datatable sorting still remains on column 2 instead of defaulting to column 7. I thought redrawing the datable with true parameter will reset sorting to default.
Answers
The
draw()
docs state this for thetrue
parameter:It doesn't state that ordering will be reset back to default . You can use the
order()
API to change the order before you usedraw()
to reset the order to the desired order.Kevin