Title: [SOLVED] Swap rows in datagrid Post by: Wojak on October 05, 2023, 03:28:17 PM Hi,
I would like to add a button that allows the rows to be swapped up and down. I found a post from 2014, but it doesn't work :( https://www.jeasyui.com/forum/index.php?topic=3634.0 (https://www.jeasyui.com/forum/index.php?topic=3634.0) Snippet of the code Code: function dgSwapColumns(from, to) { It gives me this error Code: Uncaught TypeError: $.fn.datagrid.methods[_8ee] is not a function Title: Re: Swap rows in datagrid Post by: jarry on October 14, 2023, 06:14:00 PM This code shows how to swap two rows in a datagrid.
Code: var index1 = 2; Title: [SOLVED] Swap rows in datagrid Post by: Wojak on October 16, 2023, 09:13:30 AM Thanks for advice ;)
Works like a glove |