RadEditor Imagemanager controls disabled

2 posts, 0 answers
  1. Adam
    Adam avatar
    2 posts
    Member since:
    Mar 2014

    Posted 05 May 2014 Link to this post

    I realise there are several threads on this subject and I have read every one I can find. I have tried all of the suggested solutions, but to no avail.
    I've tried teh following solutions:

     Cannot get Upload/Delete to show
     Troubleshooting.

    http://www.telerik.com/forums/radeditor-image-manager-upload-button-and-others-disabled---windows-authentication
    http://stackoverflow.com/questions/12199021/rad-editor-telerik-control-image-manager-and-asp-net-button-issues-not-working
    http://www.telerik.com/forums/radeditor-image-manager-buttons-disabled


    My ImageManager WAS working until I updated to 2014 Q1. Since then, all of the tools in the ImageManager toolbar are disabled in all the environments I deploy to.
    I get no permissions errors or any indication as to why the user can't upload.

    I've checked and double checked the handlers in the web config.
    I've tried removing and re-adding the Telerik references
    I've tried removing and re-adding the RadEditor control with default settings.
    I've tried checking the Smart Menu to make sure that the handler config is right.
    I've set my Upload/Delete/View folder paths programmatically and declaratively.
    I've tried setting the location in the webconfig

    Here's my code

    <system.webServer>
      <modules runAllManagedModulesForAllRequests="true">
         
         
        <remove name="RadUploadModule" />
        <remove name="RadCompression" /><add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" />
        <add name="ExceptionlessModule" type="Exceptionless.Web.ExceptionlessModule, Exceptionless.Web" />
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
        <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
      </modules>
      <validation validateIntegratedModeConfiguration="false" />
      <handlers>
         
        <remove name="ChartImage_axd" />
        <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
        <remove name="Telerik_Web_UI_DialogHandler_aspx" />
        <remove name="Telerik_RadUploadProgressHandler_ashx" />
        <remove name="Telerik_Web_UI_WebResource_axd" />
        <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
        <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
        <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
        <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
        <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      </handlers>
    </system.webServer>


    <telerik:RadEditor ID="BodyRadEditor" runat="server" Width="100%"  AllowScripts="True">
            <ContextMenus>
                <telerik:EditorContextMenu TagName="IMG">
                    <telerik:EditorTool Name="SetImageProperties" />
                </telerik:EditorContextMenu>
                <telerik:EditorContextMenu TagName="TABLE">
                    <telerik:EditorTool Name="ToggleTableBorder" />
                    <telerik:EditorTool Name="SetTableProperties" />
                    <telerik:EditorTool Name="DeleteTable" />
                </telerik:EditorContextMenu>
                <telerik:EditorContextMenu TagName="TD">
                    <telerik:EditorTool Name="InsertRowAbove" />
                    <telerik:EditorTool Name="InsertRowBelow" />
                    <telerik:EditorTool Name="DeleteRow" />
                    <telerik:EditorTool Name="InsertColumnLeft" />
                    <telerik:EditorTool Name="InsertColumnRight" />
                    <telerik:EditorTool Name="MergeColumns" />
                    <telerik:EditorTool Name="MergeRows" />
                    <telerik:EditorTool Name="SplitCell" />
                    <telerik:EditorTool Name="DeleteCell" />
                    <telerik:EditorTool Name="SetCellProperties" />
                </telerik:EditorContextMenu>
                        <telerik:EditorContextMenu TagName="BODY">
                        <telerik:EditorTool Name="PasteFromWord" />
                        <telerik:EditorTool Name="PastePlainText" />
                        <telerik:EditorTool Name="PasteAsHtml" />
                    </telerik:EditorContextMenu>
            </ContextMenus>
     
        <Tools>
            <telerik:EditorToolGroup Tag="MainToolbar">
                <telerik:EditorSplitButton Name="Undo">
                </telerik:EditorSplitButton>
                <telerik:EditorSplitButton Name="Redo">
                </telerik:EditorSplitButton>
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="Print" ShortCut="CTRL+P / CMD+P" />
                <telerik:EditorTool Name="AjaxSpellCheck" />
                <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F / CMD+F" />
                <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A / CMD+A" />
                <telerik:EditorTool Name="Cut" ShortCut="CTRL+X / CMD+X" />
                <telerik:EditorTool Name="Copy" ShortCut="CTRL+C / CMD+C" />
                <telerik:EditorTool Name="Paste" ShortCut="CTRL+V / CMD+V" />
                <telerik:EditorToolStrip Name="PasteStrip">
                </telerik:EditorToolStrip>
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup Tag="InsertToolbar">
                <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+G / CMD+G" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="LinkManager" />
                <telerik:EditorTool Name="InsertLink" />
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup Tag="DropdownToolbar">
                <telerik:EditorSplitButton Name="InsertSymbol">
                </telerik:EditorSplitButton>
                <telerik:EditorToolStrip Name="InsertTable">
                </telerik:EditorToolStrip>
                    <telerik:EditorTool Name="ToggleTableBorder" />
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="JustifyLeft" />
                <telerik:EditorTool Name="JustifyCenter" />
                <telerik:EditorTool Name="JustifyRight" />
                <telerik:EditorTool Name="JustifyFull" />
                <telerik:EditorTool Name="JustifyNone" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="Indent" />
                <telerik:EditorTool Name="Outdent" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="InsertOrderedList" />
                <telerik:EditorTool Name="InsertUnorderedList" />
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="FormatSets" />
                <telerik:EditorTool Name="Bold" ShortCut="CTRL+B / CMD+B" />
                <telerik:EditorTool Name="Italic" ShortCut="CTRL+I / CMD+I" />
                <telerik:EditorTool Name="Underline" ShortCut="CTRL+U / CMD+U" />
                <telerik:EditorTool Name="StrikeThrough" />
            </telerik:EditorToolGroup>
        </Tools>
        <Content>
    </Content>
     
        <ImageManager EnableAsyncUpload="true" AllowFileExtensionRename="False" AllowMultipleSelection="True" MaxUploadFileSize="2048000" DeletePaths="~/Uploads" UploadPaths="~/Uploads" ViewPaths="~/Uploads"></ImageManager>
        <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
    </telerik:RadEditor>

            protected virtual void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    ArticleMultiView.SetActiveView(ArticleFormView);
     
                    if (!Directory.Exists(Server.MapPath(@"~/Uploads/" + user.Username)))
                        Directory.CreateDirectory(Server.MapPath(@"~/Uploads/" + user.Username));
     
                    
                    string[] path = new string[] { @"~/Uploads/" + user.Username + "/" };
     
                    BodyRadEditor.ImageManager.UploadPaths = path;
                    BodyRadEditor.ImageManager.ViewPaths = path;
                    BodyRadEditor.ImageManager.DeletePaths = path;
    ...
    ...
    ...
                   }
             }

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 06 May 2014 Link to this post

    Hello,

    I just replied to your support ticket on the subject.

    For reference I am pasting below my answer:

    It is strange to experience this problem with the purchased version, but not with the trial one, because the sole differences between both versions is the trial error message. Your code looks also fine and should work.

    Can you please make a simple test by replacing manually the registered Telerik.Web.UI.dll with the trial one? Does the problem still persist?

    Another test is to remove the code behind code for setting the Image manager paths

    string[] path = newstring[] { @"~/Uploads/"+ user.Username + "/"};

    BodyRadEditor.ImageManager.UploadPaths = path;

    BodyRadEditor.ImageManager.ViewPaths = path;

    BodyRadEditor.ImageManager.DeletePaths = path;


    and keeping the configuration in the aspx file

    DeletePaths="~/Uploads"UploadPaths="~/Uploads"ViewPaths="~/Uploads"


    and ensuring that the Uploads folder is available in the root of your web application or web site.

    Just for test give full permissions to the everyone user for the Uploads folder.

    If this does not work again, try to remove the configuration properties one by one until the the Upload functionality starts to work. You can also create a simple test project until you verify that the Image Manager works as expected. After that compare the settings of both apps.



    Kind r
    egards,
    Rumen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top