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

Drag&drop changes are not saved

Dear Support !


We find: If we drag&drop a Gantt task, the change (eg: ParentID) does not generate a change in the Custom adapter-> the change is not saved in the database. What is the method to be saved?


Thanks in advance !


10 Replies

SZ Szoke December 7, 2022 07:03 PM UTC

Could you look at it, what is the solution?



MS Monisha Sivanthilingam Syncfusion Team December 8, 2022 12:22 PM UTC

Hi Szoke,


Greetings from Syncfusion support.


We are currently working on your query. We will provide you with an update within one business day(December 9, 2022).


Regards,

Monisha.



MS Monisha Sivanthilingam Syncfusion Team December 9, 2022 10:00 AM UTC

Hi Szoke.


Row Drag and Drop is not supported by the Gantt Chart in Custom Adaptor. We logged a feature request for this requirement.  You can track the status of the feature from the feedback link given below.

https://www.syncfusion.com/feedback/39439/filtering-and-sorting-support-in-custom-adaptor


As we have already lined up some major features, we could not implement this support immediately. We will implement this and include it in any of our upcoming releases. Please cast your vote on this feature. Based on the customer demand we will prioritize the features in our upcoming road map.


Regards,

Monisha.



SZ Szoke replied to Monisha Sivanthilingam December 12, 2022 09:22 AM UTC

Hi Monisha !


The link is private feedback, I can not open.


Then what can be the solution now to save the data modified in this way?

Thanks in advance !



MS Monisha Sivanthilingam Syncfusion Team December 12, 2022 10:39 AM UTC

Hi Szoke,


We have changed the feedback to public. You can access it now.


As we said, in our previous update, we do not have support for updating the row drag and drop changes to the database using custom adaptor. Hence, we have logged a feature report for it. However, we do not have any immediate plan to implement this support. At the planning stage for every release cycle, we review all open features and implement the features based on feature rank, customer requested count and volume wish-list.


The status of implementation can be tracked through the below portal link:


https://www.syncfusion.com/feedback/39439/filtering-sorting-and-row-drag-and-drop-support-in-custom-adaptor


Regards,

Monisha.



SZ Szoke replied to Monisha Sivanthilingam December 13, 2022 09:22 PM UTC

Can it only be handled with a Custom adapter, or can we not handle it at all? 

The question arises: what can the drag&drop function be used for if we cannot save the changes?



MS Monisha Sivanthilingam Syncfusion Team December 20, 2022 10:00 AM UTC

Hi Szoke,


We have noticed that you are using the Custom Adaptor and we wanted to ask why. Is it because you want to update the ParentID of the dropped record? If so, we have determined that there is a bug causing the ParentId of the dropped record not to update. We have created a bug report for this issue, and you can track its progress using the following link:


Feedback: https://www.syncfusion.com/feedback/39907/parentid-not-updating-when-row-drag-and-drop


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization


Regards,

Monisha.



MS Monisha Sivanthilingam Syncfusion Team January 17, 2023 06:32 AM UTC

Hi Szoke,


In the RowDropped event of the Gantt chart, you can obtain the updated ParentId of the record that was dragged and dropped. The code snippet demonstrates how to access the ParentId of the dropped record. This information can then be used to update the ParentId in your database.


Index.razor

 

<GanttEvents TValue="TaskData" RowDropped="OnRowDroped"></GanttEvents>

 


 

public void OnRowDroped(Syncfusion.Blazor.Grids.RowDroppedEventArgs<TaskData> args)

{

  var data = args.Data[0];

  var parentId = data.ParentId;

}

 


Regards,

Monisha.



SZ Szoke replied to Monisha Sivanthilingam February 24, 2023 08:45 PM UTC

Thank you, it works well!



DA Divya Ayyachamy Syncfusion Team February 27, 2023 08:03 AM UTC

Szoke, you are most welcome. Please get back to us if you require any further assistance.


Regards,

Divya


Loader.
Live Chat Icon For mobile
Up arrow icon