jlooper / nativescript-snacks

🍕 Short snippets and videos to help users learn NativeScript
http://www.nativescriptsnacks.com
24 stars 8 forks source link

drag and drop between 2 listview #28

Closed sflament closed 6 years ago

sflament commented 7 years ago

I would be very happy in viewing a tutorial showing how to perform drag and drop items between two listtview on the same screen. I did not succeed, nor with Pan Gesture and classic Listview, nor with RadListview.

Stephane

jlooper commented 7 years ago

we do now have a drag/drop snippet (actually 2) - in case that might help?

fourctv commented 7 years ago

@jlooper I am also interested on a d&d tutorial. the existing snippets deal with moving around images.

what we are asking here is the ability to drag a row from one ListView and drop it into another, or to rearrange rows on a ListView

jlooper commented 7 years ago

Hi, take a look at the NativeScript-UI plugin. It has just that functionality as I remember.

sflament commented 7 years ago

Hello Jen, to rearrange items into one list is possible with radlistview feature. But i still waiting for a solution for moving items between two list in a same page.

jlooper commented 7 years ago

Oh! Fancy! I will look into it

fourctv commented 7 years ago

Yeah, after I wrote my comment I realized that RadListView has the reorder feature already. What we are missing is a way to drag & drop between ListViews or RadListViews.

sflament commented 6 years ago

Hello Jen, I still wait for a tutorial showing how to deal with a D&D between listviews or radlistviews, have you heard of something ?

Better if with Typescript and angular. I'm not tough enough to succeed in this by myself.

jlooper commented 6 years ago

hi, I'm not either :D - let me raise this within our community, maybe someone could do something in Playground! Stay tuned!

shiv19 commented 6 years ago

Here's one way to drag and drop in {N} https://play.nativescript.org/?template=play-js&id=HLY5Uh

jlooper commented 6 years ago

Thanks @shiv19 ! added to latest snack playground page!

sflament commented 6 years ago

Thanks @jlooper and @shiv19 ! You give us a good starting point.

snq commented 6 years ago

The playground doesn't work for me :(

phatakrajan commented 4 years ago

@shiv19 @jlooper looks like the code in home-page.xml has been replaced with some default template. Can you please add sample code back?

shiv19 commented 4 years ago

@phatakrajan add &v=1 to the end of the link