PDA

View Full Version : Is this possible w/ EXTjs?


glenlevy
10-19-2009, 02:06 PM
Is it possible in EXTjs to go from an EXTjs Grid (or some other EXTjs Element), and drag and drop INTO an excel (not from excel to extjs, im looking for extjs to excel via drag and drop method)?

Thank You,
Glen

carl23934
10-20-2009, 09:52 AM
Nope. This is not possible with anything that comes with any default web browser. The problem is that Web browsers run in a sandbox, and this type of interaction adds a lot of security concerns.

You can do something like this with an additional browser plugin, such as Internet Explorer ActiveX or firefox Add-ons, but this is not possible with anything out-of-the box for any browser or any javascript library.

dbassett74
10-20-2009, 09:56 AM
You could do something server side which takes the data that is represented in the grid, and produce an Excel file. Even an CSV file would work and not require any special software on the server. Simply format it to CSV on the server, and output to browsers, causing a download. You can then open up in Excel.

jgarcia@tdg-i.com
10-20-2009, 09:57 AM
it is possible with IE and an Active X control.

VinylFox
10-20-2009, 10:22 AM
It actually is possible without any plugins or anything other than just the browser, and it works in all browsers. The data your dragging just needs to be tab delimited with line feeds or be a table. OpenOffice and MS Office will accept this type of dragged data as columns and rows.

VinylFox
10-20-2009, 10:28 AM
Come to think of it, my DataDrop plugin could be adapted to handle this relatively easily.

Right now it takes the tab delimited data dropped into it and converts those into records, but theres no reason it couldnt listen for the start of a drag event and do the opposite, turning the selected rows records into tab delimited data.

Hmm....sounds like fun :)

jgarcia@tdg-i.com
10-20-2009, 10:36 AM
Come to think of it, my DataDrop plugin could be adapted to handle this relatively easily.

Right now it takes the tab delimited data dropped into it and converts those into records, but theres no reason it couldnt listen for the start of a drag event and do the opposite, turning the selected rows records into tab delimited data.

Hmm....sounds like fun :)

well get to work, bish! :)

Mike Robinson
10-20-2009, 01:22 PM
... then tell the rest of us "what worked best for you." Because, obviously, lots of us are faced with similar requirements from time to time, for JavaScript environments in-general.

VinylFox
10-20-2009, 01:28 PM
... then tell the rest of us "what worked best for you." Because, obviously, lots of us are faced with similar requirements from time to time, for JavaScript environments in-general.

Was this question directed at someone specifically?

Mike Robinson
10-20-2009, 02:11 PM
Probably to the original poster. Lots of folks have need to do things like this, and it'll be great for them if someday they can 'stumble upon' this thread and ... here's not only the question but a couple good answers and/or war-stories. ~o) Heck, that's what makes forums such a great resource.

Scorpie
10-21-2009, 02:58 AM
Come to think of it, my DataDrop plugin could be adapted to handle this relatively easily.

Right now it takes the tab delimited data dropped into it and converts those into records, but theres no reason it couldnt listen for the start of a drag event and do the opposite, turning the selected rows records into tab delimited data.

Hmm....sounds like fun :)

Would be nice, I already love that plugin _O_

randhir
10-22-2009, 01:48 AM
i read the above question, would like to know about the ext-js framework having any way of accepting a drag drop done from outside the browser (may be physical file or a any link )

I need to know it there is any way to catch the drop on the extjs control let be any where from outside the browser that can be activex or any control.