Stop sort after Inline Update & Add new Item
Stop sort after Inline Update & Add new Item
Is it possible to stop the datatable from reordering itself after an item is updated via inline?
It can be confusing to people who make an update inline and then the record disappears (As its reordered instantly and might move to another page). Ideally a reorder wouldnt be triggered even if the table is now out of order.
Also After inserting a new record, it would be good to force that new record to show on the top, the first item in the datatable, again ignornig the order is that possible?
Answers
Hi @Hbi ,
If it's currently being ordered on a column, and that column changes, then that row will get resorted into its correct place in the order - there isn't a way to avoid that, I'm afraid.
You may be able to use the absolute sorting plugin to keep new rows on the top. When a row is created, you could set a boolean in a hidden column, which that plugin watches for rows to move to the top. That should do what you want.
Hope that helps,
Cheers,
Colin