Image Manager w/o Insert

4 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    588 posts
    Member since:
    Mar 2004

    Posted 04 Mar 2011 Link to this post

    I am using a custom dialog to implement the ImageManager as a standalone file manager for images (outside of RadEditor). I have hidden both the "Insert" button of the FileBrowser UserControl and the "Properties" tab of the ImageManager UserControl. However, if a user double clicks on an image, it still assuems they are trying to insert the image in some content and this results in the ImageManager dialog closing. Is there a way to disable the double click for files within the FileBrowser control in my custom dialogs?
  2. Rumen
    Rumen avatar
    14420 posts

    Posted 09 Mar 2011 Link to this post

    Hi Albert,

    You can use the OnClientFileOpen event of RadFileExplorer to cancel the file insertion in the content area:

    <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="450" EnableCopy="true"
        <Configuration ViewPaths="~/Images" />
    <script type="text/javascript">
        function OnClientFileOpen(sender, args) {
            if (!sender.get_selectedItem().isDirectory()) {

    The FileExplorer is available in the FileBrowser.ascx file.

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Karlo
    Karlo avatar
    4 posts
    Member since:
    Mar 2012

    Posted 31 Jul 2012 Link to this post

    in 2012 Q2 SP1, the rad dialog still closes even if I cancel the OnClientFileOpen

    any work arounds?
  4. Rumen
    Rumen avatar
    14420 posts

    Posted 03 Aug 2012 Link to this post


    Yes, this is the default behavior of the File Browser dialogs of RadEditor and we do not plan to disable it. To avoid the dialog closing, you should handle the OnClientFileOpen event as shown in my earlier post.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top