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

2 posts, 0 answers
  1. Paul
    Paul avatar
    55 posts
    Member since:
    Nov 2010

    Posted 24 Jan 2011 Link to this post

    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/" />





    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?

  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 28 Jan 2011 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top