ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Drag & drop multiple
Title:
B
I
{code}
?
I have a List of Cards where in there are many items es. http://www.caivola.it/files/drag.png I would be able to drag items from any card to another. I would like to do it with awesomeMvc .. i see your "Simple drag and drop" demo in Main Sample, I think can make with a AjaxList with inside <div id="card_x" class="div_x"> <p>drag source</p> <div id="card_x_item_1" class="dragItem">ITEM 1</div> <div id="card_x_item_2" class="dragItem">ITEM 2</div> ... ... </div> but I don't know : 1) Is it possible to set `awem.dragAndDrop` function to work may to many ? 2) after dragging there is an event with Id from item and Is to Item ?
Save Changes
Cancel
Meccanica Rossi
asked at 15 Nov 2017
this will be difficult in the current version because you have to specify every possible pair of source and target, but it will be easy in the next version and there will be a similar demo
at 15 Nov 2017
Omu
in the `drop` event do you need the to know from where the item was dragged, or previous index ? what is the use of this information ?
at 24 Nov 2017
Omu
If I update relative information to db, I need : - From Item Id - From Container Id (this can be retrieved from "From Item Id") - To Container Id
at 29 Nov 2017
Meccanica Rossi
having Item Id you should already give you "From Container" on the server, plus if you have multiple users moving the same item the "From Container" parameter obtained from the client might not be correct anyway
at 29 Nov 2017
Omu
Yes, if I have Item Id, can be retrive the container id (by server), If I have multiple users don't change anything, because the ids was released from server and all user will have the same ids http://www.caivola.it/files/drag2.png If I want to move "ITEM ID = 101" to container "ID = 2", I have to send to server 2 parameters, 1. 101 (From Item Id) 2. 2 (To Container Id) I server controller I will retrive the "Id From Container" in this sample is 1) then UPDATE tblMyLinks SET ContainerId = 2 FROM tblMyLinks WHERE ContainerId = 1 AND ItemId = 101
at 29 Nov 2017
Meccanica Rossi
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK