This is a migrated thread and some comments may be shown as answers.

Vue Grid Wrapper Drag Drop a row

3 Answers 391 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
RR
Top achievements
Rank 1
RR asked on 06 Mar 2020, 05:06 AM

Hi, 

Is dragging a row from view grid wrapper component available? There's nothing in here

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 09 Mar 2020, 01:04 PM

Hi Roshan,

The Drag and drop functionality in a wrapper grid can be achieved via the Kendo Sortable widget. For example:

<div id="vueapp">
    <kendo-grid id="grid" :data-source="localDataSource">
        ...
    </kendo-grid>
</div>
 
<script>
  var $ = kendo.jQuery;
  $(function(){
 
    var grid = $('#grid').data('kendoGrid');
     
     grid.table.kendoSortable({
            ...
      });
  })
 
</script>

For your convenience, I have assembled a small sample which demonstrates how to sort via drag and drop in a vuejs wrapper grid:

Let me know if you have further questions.

Regards,
Nikolay
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
RR
Top achievements
Rank 1
answered on 10 Mar 2020, 07:10 AM
Thank you for the reply. This is great. My requirement is to drag a row as a item in to an external object.(eg:tree).Could this be possible? 
0
Nikolay
Telerik team
answered on 12 Mar 2020, 07:37 AM

Hello Roshan,

This could be achieved using the Kendo Draggable. However, this is not a grid built-in functionality and so it will need to be implemented manually.

Below I am posting two examples that may help you with this. Please note that they use jQuery grid but the logic remains the same for vuejs applications.

Regards,
Nikolay
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
RR
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
RR
Top achievements
Rank 1
Share this question
or