what is the event for move rowup through index ??
Move Rowup
Hi @kunal
When you move a row up or down
you trigger these two hooks
-
beforeRowMove
- https://handsontable.com/docs/7.4.2/Hooks.html#event:beforeRowMove -
afterRowMove
- https://handsontable.com/docs/7.4.2/Hooks.html#event:afterRowMove
Both of the hooks return the array of moved rows and the index where the rows are dropped
Demo https://jsfiddle.net/c3jvd4hr/
Do you need any additional metrics for that action?
i dont want to manually !!
Those hooks are also called when you move rows programatically, like here https://jsfiddle.net/47waytdx/
I am using moveRow
of the manualRowMove
plugin to move rows programmatically and that action is described by the hook in the console.
ps. to move multiple rows use moveRows
instead https://jsfiddle.net/0k61nhvu/ it will ask you for an array of numbers instead of a single number (index)
tq…wrking fine !!
Great. I’m glad it met your requirements.
I’m closing this ticket.