Hi,
I'm checking the example code located on this page
https://help.syncfusion.com/aspnetmvc/grid/row?cs-save-lang=1&cs-lang=csharpthe drag and drop between grid example. I have a project that I need to drag and drop between grids. I already added that and it is working fine.
I found some issues that I need your help solving.
1. I got an error in javascript sometimes
ej.web.all.min.js:10
Uncaught TypeError: Cannot read property 'rowDropSettings' of undefineddrop @ ej.web.all.min.js:10
_drop @ ej.web.all.min.js:10
i @ jquery-1.10.2.min.js:21
dispatch @ jquery-1.10.2.min.js:22
v.handle @ jquery-1.10.2.min.js:222. In the example, you have 4 methods in the controller
public ActionResult RowDragHandler(List<EditableOrder> deleted)
public ActionResult RowDropHandler(List<EditableOrder> added)
public ActionResult RowDragHandler2(List<EditableOrder> deleted)
public ActionResult RowDropHandler2(List<EditableOrder> added)
Those methods do not seem to do anything. I debug and nothing happened.
3. I need to have the property .AllowRowDragAndDrop() in both grids (source and destination) active and inactive on demand.
I added the method connected to the second grid on a custom button. But, I got the error
gridObj.AllowRowDragAndDrop is not a function. How can I achieve this behaviour?
4. I need to do a preprocessing as soon as the grid register the new object coming from the source grid into the destination grid. I need to take the object transported into and convert it into a new type of object and send a post to the backend. I know how to do the send. I only need to understand how to create a custom method for pre-processing the object when Drop event finished.
I have attached the project and some images of the issues.
Kind regards,
Juan
Attachment:
SyncfusionMvcApplication14_db80e230.7z