Document Manage refreshing Image stays on

2 posts, 0 answers
  1. peter
    peter avatar
    2 posts
    Member since:
    Apr 2009

    Posted 09 Nov 2011 Link to this post

    Hi. I can create and delete folders, upload and delete files. But the refreshing logo with greyed out background won't go away.

    My code is below. For an image of the issue please look at http://stackoverflow.com/questions/7927274/telerik-upload-manager-folder-creates-and-deletes-but-refresh-images-stays

    telerikupload.aspx
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="telerikupload.aspx.cs" Inherits="plle_telerikupload" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
     
    <head runat="server">
        <title></title>
    </head>
    <body>
    <form runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server" />
         
                <telerik:dialogopener runat="server" id="DialogOpener1"></telerik:dialogopener>            
                <asp:Button runat="server" ID="DocumentManagerButton" Text="doc"
                            Visible="true" />            
            </asp:Panel>
            <asp:Label ID="Info" SkinID="Info" runat="server" />
        </div>
        </form>
    </body>
     
    </html>

    telerikupload.aspx.cs
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI.Editor.DialogControls;
    using Telerik.Web.UI;
     
    public partial class plle_telerikupload : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FileManagerDialogParameters documentManagerParameters = new FileManagerDialogParameters();
            documentManagerParameters.ViewPaths = new string[] { "~/" };
            documentManagerParameters.UploadPaths = new string[] { "~/" };
            documentManagerParameters.DeletePaths = new string[] { "~/" };
            
            var dialog = "~/dialogs/default/";
             
     
            documentManagerParameters["ExternalDialogsPath"] = dialog;
     
            DialogDefinition documentManager = new DialogDefinition(typeof(DocumentManagerDialog), documentManagerParameters)
            {
                ClientCallbackFunction = "DocumentManagerFunction",
                Width = Unit.Pixel(694),
                Height = Unit.Pixel(440)
            };
     
            DialogOpener1.DialogDefinitions.Add("DocumentManager", documentManager);
     
            DocumentManagerButton.OnClientClick = string.Format("$find('{0}').open('DocumentManager');return false;", this.DialogOpener1.ClientID);
        }
    }
  2. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 09 Nov 2011 Link to this post

    Hi Peter,

    The code is incomplete because you did not provided the DocumentManagerFunction function. My recommendation is to try the solution provided in this KB article Using the Image and Document managers outside RadEditor and if you experience problems to send a sample working project to clientservice@telerik.com or open a support ticket and attach it to it.

    Please also ensure that you are using the latest 2011.2.915 build of Telerik.Web.UIl.dll.

    Kind regards,
    Rumen
    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