Editor deselecting on update
Editor deselecting on update
shantiram
Posts: 13Questions: 5Answers: 2
Hi
When editing certain tables, whenever i hit Update the row is deselected. Any idea what could be causing this?
Page: yogameditation.com/karto
This question has accepted answers - jump to:
This discussion has been closed.
Answers
I believe that is the expected behaviour. Why is it a problem for you?
Ok yes I can see now that is the expected behaviour for server side tables... (But not client side).
It becomes kind of disorienting with large tables...
Also I have tried to implement stepping up/down rows with the keyboard, so the row deselecting whenever an edit is made becomes a bit annoying.
According to this page: https://datatables.net/extensions/select/examples/initialisation/reload.html
you should be able to set "deferRender: true" to fix this, but it doesn't work for me. Will post back if I come up with a solution.
If anyone's interested this is what I did. This maintains the selected position on redraw as well as between sessions.