Inline Editor reposistions datatable .. Can i stop it ??
Inline Editor reposistions datatable .. Can i stop it ??
rob morning
Posts: 30Questions: 7Answers: 1
in Editor
Have an inline Editor which correctly updates a record via an ajax call BUT on completion repositions the datatable such that the first one displayed at the top of the table is the one immediately AFTER the one i've just edited .. Can I prevent this behaviour ?
Thanks ..
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes - use the
draw
option of theform-options
object (which you can pass intoinline()
. Set it to bepage
which will stop Editor requesting that DataTables immediately resort and filter the data based on the new data.Allan
Thanks so much .. I'll try that
Actually the problem is not that it repositions the datatable , it's actually hiding the row just edited .. All the other rows are displayed EXCEPT for the one just edited ..
I also use boostrap ...
Found it ! .. returning invalid data from ajax update .. doesn't throw any errors - just removes the row from the table .. My bad .. Thanks