Wednesday, March 21, 2012

COMMUNITY WIDE NEED: DragDropList

I think enough of us have really talked about this, and even more of us have figured out how to program it by ourselves .. but I think this is one feature that should REALLY be a member of the toolkit. There are certain things which would really benefit this community, especially all the drag/drop which has always really been in there .. and only the select few dare to dig that deep.

I Agree... somewhat.

I've spent way too much time trying to figure out how to drag and drop from one list to another. The reorder list is fine, but I need to move stuff from one list to another, dynamically. I read your post on adding template fields, and frankly it was the last piece I needed to create a DragDropList and DragDropListItem set of controls. Your answer was the last post on the thread on a very long thread. I don't know the timespan from when you posted your answer, and the start of the thread(this is a beta, and thing change), but the answer you gave was the correct one IMHO.

I think rather than a DragDropList control for the toolkit a need for a *good* tutorial on how to create the server controls you need. There are too many variations.

Currently I need the DropZones to sort the items after they have dropped. I think this is something a control should have, but how? Some will want sorts on numeric values some on strings. This is an implimentation thing.

Next is the DataType = HTML. I have not looked too closely at this, but it seems this could really do anything you want. I have HTML items that are data stuctures. It seems to me that a developer could hijack the DataType, for thins like; "Dogs" or "Cats" datatypes.This wit the acceptedDatatype could be cool. Each item being dropped could do it's own thing.

I saw a nice tutorial on CodeProject for DragAndDrop from the client side. The author was asking for someone to come up with a server side version.

My son woke up, so I have to go...

Eric Wild


Eric,

True, I think some good tutorials on creating controls that utilize Atlas behaviors would be nice. And I'm glad that I helped out a fellow community member with a problem, but at the same time I think it's interesting that something that's been in the toolkit (Reorder List, which uses both the DragDropList and DropZone) has probably been the least documented. I have literally weeks of time spent in the sparse documentation for the client-side javascript just to get basic functionality. Most of the time, my answers come from fellow community members in posts of desperation, Garbin's blog .. or complete guesses.

The one things is for sure, is that when it comes to drag and drop, there are so many variations of the code ... and so many uses for this feature.

The one thing that I have been trying to figure out, is with the DragDropList .. saving the position of the items.

No comments:

Post a Comment