what is the event for move rowup through index ??
Hi @kunal
When you move a row up or down
you trigger these two hooks
beforeRowMove
- Hooks API reference - JavaScript Data Grid | HandsontableafterRowMove
- Hooks API reference - JavaScript Data Grid | Handsontable
Both of the hooks return the array of moved rows and the index where the rows are dropped
Demo Handsontable example - JSFiddle - Code Playground
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.