View Full Version : Drag and Drop Row Selection

24 Nov 2010, 8:28 AM

I have spent the last 4 hours reading as much as I can about how I can implement a drag and drop grid/treegrid, where I can drag items within a single grid, and put them inside a folder (parent item). I also need to be able to reorder all these items by dragging only. And finally need to be able to create a new folder by the click of a button.

I know the theory behind alot of this, but when it comes to knowing the syntax, what parameters, functions, event listeners i need is a nightmare. The API docs arent that clear for a large majority of ExtJS.

I have made my treegrid, what i need to know is how to do put an eventlistener on the drop target, so when it is droped on a folder, it will put it inside it, changing the values (is_leaf: true, level: 2 and parent: to the id of the folder)?


25 Nov 2010, 4:23 PM
Just an FYI, people might consider your signature as spam unless they have something to do with Ext JS, JavaScript or programming in general.