We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Reorder Rows using Drag and Drop in the same Grid

Hi, is it possible to have a sample showing how to sort rows using Drag and Drop inside the same grid? 

3 Replies

VN Vignesh Natarajan Syncfusion Team December 3, 2019 05:40 AM UTC

Hi Elio,  

Greetings from Syncfusion support.  

Query: “is it possible to have a sample showing how to sort rows using Drag and Drop inside the same grid? 

Yes, we can achieve your requirement using Row Drag and Drop feature of EjsGrid. Row Drag and Drop feature can be enabled using AllowRowDragAndDrop property of EjsGrid. Refer the below code example.  

<EjsGrid ID="Grid" DataSource="@GridData" AllowRowDragAndDrop="true" AllowPaging="true"> 
    <GridColumns> 
. . . . . . . . . .  
    </GridColumns> 
</EjsGrid> 

As per request, we have prepared a sample using our latest Nuget package which can be downloaded from below 


Please get back to us if you have further queries. 

Regards, 
Vignesh Natarajan. 
 



NA Natchathat February 28, 2020 05:41 PM UTC

Hi Vignesh,

I downloaded and tried your sample.

Drag & Drop in the same grid results in a new item being inserted into the grid with the original item staying in place.

The intended behavior should be reordering of items, yes? Please reconfirm that the drag & drop feature is functioning as intended.

(Tested using nuget version v17.4.0.51)

Thank you very much.


RS Renjith Singh Rajendran Syncfusion Team March 2, 2020 11:53 PM UTC

Hi Natchathat, 

Thanks for contacting Syncfusion support. 

We have confirmed this as a defect and logged a defect report for the same. Thank you for taking the time to report this issue “Dragged row is not removed from the grid when drag and drop within grid.” and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the fix in our upcoming bi-weekly patch release which is expected to be rolled out by the end of March,2020.  
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  

Please get back to us if you need further assistance. 

Regards  
Renjith Singh Rajendran. 



Loader.
Live Chat Icon For mobile
Up arrow icon