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

bug? and how do I get updated properties set by javascript

1 Answer 31 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 25 Jan 2011, 01:26 AM
Hi. I'm looking at the file explorer and have a couple of issues:

1.  EnableEmbeddedScripts got accidentally set to false and the page always crashes with a jscript error. This is the declaration. If I remove the enableEmbeddedScripts it all works ok!

 

<telerik:RadFileExplorer ID="rfExplorer" runat="server" Width="350px" Height="350px"

 

 

DisplayUpFolderItem="false" ExplorerMode="FileTree" EnableEmbeddedScripts="false" >

 

 

<Configuration ViewPaths="~/Photos/" UploadPaths="~/Photos/" DeletePaths="~/Photos/" />

 

 

</telerik:RadFileExplorer>

 


2. I have effectively copied the code from the demos on the website. This uses javascript to set the .src property of a html <img> with the filename selected in the fileExplorer. However, on my page I then have a button that executes code behind to process the page. What I am finding is that the fileExplorer works. When I open a file it updates the <img> but when the code behind for the button executes the value read by the code (from .src) is the original value - not the filename that is actually being displayed. Do you have any clue what is happening?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 28 Jan 2011, 09:15 AM
Hi Paul,

This is expected behavior of RadFileExplorer. The control have a built-in scripts which provide its client-side functionality and if the EnableEmbeddedScripts is set to false you need to manually register its scripts.

This is also expected behavior, which is not directly related to RadControls but is a general ASP.NET knowledge. You can submit information modified with JavaScript to the server the HTML element containing the information should be a form element (ie INPUT, TEXTAREA, etc). To pass the information of the currently selected image, I would recommend you to use a hidden filed and update its value.

Regards,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
FileExplorer
Asked by
Paul
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or