New to Kendo UI for Vue? Start a free 30-day trial
Drag and Drop Rows between Two Grids
Environment
Product Version | 2.4.0 |
Product | Progress® Kendo UI for Vue Native |
Description
The current Knowledge base article shows how we can drag and drop rows between two Kendo UI for Vue Native Grids.
Solution
To define the Draggable functionality of the Grids' rows, the below slot template is defined and passed to the "Drag" field in each of the Grids.
js
<template v-slot:myTemplate="{props}">
<custom :data-item="props.dataItem"
@dragover="reorder"
@dragstart="setActive"
@dragend="updateRemote"/>
</template>
Once the reorder
function from the above template is triggered, it applies the changes in the states of the two Grids.
For more information about the rows reordering in the Kendo UI for Vue Native Grid, you can check this documentation article.
Runnable example
Change Theme
Theme
Loading ...