Rank: Newbie Groups: Member
Joined: 1/11/2012 Posts: 1
|
how do you use downloader with file explorer??
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I do not believe you can do that. The FileExplorer does not have built-in support for file downloading.
Thanks!
|
Rank: Member Groups: Member
Joined: 3/8/2011 Posts: 19
|
In the file explorer grid, i tried to convert the filename column from textbox to button and in the command event i called the javascript function that would download the file. Also specified the ClientSideonItemCommand of the grid. But this command event does not run. Is there any work around for this
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
There is no way for you to do that in the current version. The FileExplorer handles ClientSideOnItemCommand, so whatever handler you set would be overriden by the FileExplorer. The only way you can do that is to use the FileExplorer to select the file (which gives you the Url), then use another button somewhere (I believe you can even put that button in the Grid) to download it once you have the Url.
If you need to put your button in the Grid, you can just put raw HTML like this in the Grid cell:
<a href="javascript:DownloadSelectedUrl()">Download</a>
You would then need to write the DownloadSelectedUrl function to trigger the download.
Thanks!
|