View Full Version : GridPanel drag and drop

Oct 09, 2008, 4: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!

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

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

Thanks - I appreciate it!

Oct 09, 2008, 8: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. 

Oct 09, 2008, 3: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.

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

But with folders in the gridpanel as well.

Oct 13, 2008, 4:40 PM