This is a migrated thread and some comments may be shown as answers.

[Solved] File Explorer - explorer.aspx code needed

8 Answers 267 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 16 Nov 2008, 02:50 AM
this example looks interesting

http://demos.telerik.com/aspnet/prometheus/Editor/Examples/FileExplorer/FileSelectorDialog/DefaultCS.aspx

i am unable to get it to work - something on the click event of the explorer page.

the explorer dialog page comes up - but when i enter a function call in onclientitemclick - then my search patterns don't show my files, when i take it out - i see the files but i am unable to click a file and have it appear in the text box above.

please advise.

8 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Nov 2008, 01:16 PM
Hi Jeff,

Please, find attached the File Selector Dialog example files including the Explorer.aspx page. There are available in the RadControls for ASP.NET AJAX installation which you can download from your Client.net account.


Greetings,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 21 Nov 2008, 10:31 PM
when i do this

<

 

telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server"

 

 

 

OnClientGridDblClick="OnClientGridDblClick">

 

 

 <

 

Configuration viewpaths="~/"></Configuration>

 

 

</telerik:RadFileExplorer>

all the files show - however the doubleclick function does not work

only if i set it to a sub dir - does it seem to work
<

 

 

 

 

telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server"

 

 

  

OnClientGridDblClick="OnClientGridDblClick">

 

 

 <

 

Configuration viewpaths="~/htmlemails"></Configuration>

 

 

 

 

</telerik:RadFileExplorer>

it works fine...

 

 

 

 

 

 

0
Rumen
Telerik team
answered on 25 Nov 2008, 12:24 PM
Hi Jeff,

I tried to reproduce the reported problem, but unfortunately to no avail. You can see my test in the attached video. Am I missing something?

Could you please test the attached project and let me know how to reproduce the problem on my side?

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff
Top achievements
Rank 1
answered on 25 Nov 2008, 05:58 PM
Configuration viewpaths="~/">

when i set the path to the root is where it does not let me click.

i am trying to allow users to edit their site off the root.

I need an example where i pass the selected file from the template manager dialog into my c# string path variable to be able to save it back to itself.

i'm probably making this harder than it's suppose to be - but i need to just open the file from the template manager dialog and then save it back to that opened file - is there an easy way?
0
Jeff
Top achievements
Rank 1
answered on 25 Nov 2008, 06:36 PM
the sample you sent does work, but i'm still confused as to how to save the opened file back to the external file.

i open the file
i edit it
i save it back to itself (not this page)

protected string path = "test.html"; //specify the path to your file

it's not test.html - it's whatever they opened? how in my code behind do i pass the opened file name into the string path? so i can save the edits

        
0
Rumen
Telerik team
answered on 26 Nov 2008, 03:01 PM
Hi Jeff,

Please, see my answer on the subject in this forum thread: how do i find the file selected via the template manager dialog?

Sincerely,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jaimie
Top achievements
Rank 1
answered on 01 Oct 2009, 02:10 AM
hey.

i couldn't get the FileSelectorDialog.zip working.

When i double click the file and want to return the name to textbox. A window will pop up and show the image, i also get another windows to let me open / download the file.

Can anyone help me out?
0
Fiko
Telerik team
answered on 06 Oct 2009, 06:49 AM
Hello Jaimie,

In the official version of the RadFileExplorer control we changed some of the property names.For example the OnClientGridDblClick property does not exist and in your case you need to use OnClientFileOpen property instead. The full source code of the example can be found in this online demo page.

I hope this helps.

Sincerely yours,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Jeff
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jeff
Top achievements
Rank 1
Jaimie
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or