PDA

View Full Version : GridPanel drag and drop



davidhoyt
Oct 09, 2008, 3:03 AM
Hi all. I apologize if this is obvious or if it should be posted in the ExtJS forums and not Coolite's.

We're looking to create a Windows explorer-ish application where a user can create folders and store documents in them. Barring the treeview component that's not out yet, we're attempting to complete the right-pane where it lists the folders and then the files.

What we essentially need to be able to do from the grid panel portion is drag and drop a file/folder onto a folder and then call a method in the code behind to move the file (or folder) into the folder and then refresh the grid panel. But not the other way around (you don't want to drag a folder onto a file).

In the future we'll need to be able to drag and drop into the treeview as well. I suppose we'll have to tackle that once it's available.

Is this possible?

Thanks for any help you can provide!

davidhoyt
Oct 09, 2008, 3:07 AM
Oops - didn't see the "Help" forum.

Would someone be so kind as to move this over there?

Thanks - I appreciate it!

geoffrey.mcgill
Oct 09, 2008, 7:45 AM
Hi davidhoyt,

I think some of this drag/drop functionality might be possible now.


Do you have a sample page demonstrating the configuration and arrangement of the GridPanel and other elements on the Page. This would help in fully understanding the scenario you are attempting to build and help generate a code sample. Or a screen capture or mockup would be helpful as well. Or, pointing us to some link online that might demonstrate something similar. 

davidhoyt
Oct 09, 2008, 2:31 PM
I attached an example of windows explorer.

Essentially we want to drag and drop the files around. We already have folder and file icons.

davidhoyt
Oct 09, 2008, 3:43 PM
Similar to this: http://extjs.com/forum/showthread.php?t=36495

But with folders in the gridpanel as well.

davidhoyt
Oct 13, 2008, 3:40 PM
Anyone?