|
[App.Vue]
rowDrop(args) {
this.isDragged = true;
this.dropObj = Object.assign(args, {}); // Store drop action arguments
}
actionComplete(args) {
console.log("actionComplete");
if (this.isDragged) {
this.isDragged = false;
this.$refs.grid.ej2Instances.updateCell(
this.dropObj.fromIndex,
"order",
this.dropObj.fromIndex + 1
);
this.$refs.grid.ej2Instances.updateCell(
this.dropObj.dropIndex,
"order",
this.dropObj.dropIndex + 1
);
}
} |
|
[App.Vue]
rowDrop(args) {
this.isDragged = true;
this.dropObj = Object.assign(args, {});
this.$refs.grid.refresh();
} |