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

image manager ind radupload is disabled

6 Answers 121 Views
Editor
This is a migrated thread and some comments may be shown as answers.
vinamra
Top achievements
Rank 1
vinamra asked on 27 Oct 2008, 12:29 PM
hi
i am having problem in rad editor in rad controls ajax clr2.0 Q2
image manager is disabled

i hav done all which is mentioned in
http://www.telerik.com/support/kb/article/b454K-gda-b454T-btc-b454c-btc.aspx

but image manager is still disabled

my code is

<telerik:RadEditor ID="RadEditor1" runat="server" AllowScripts="True" Skin="Telerik" 
                Height="474px" Width="658px" ToolsFile="Controls/SomeTools.xml"
     <Content> 
     </Content> 
     <ImageManager UploadPaths="~/Images/" ViewPaths="~/Images/" DeletePaths="~/Images/"  /> 
</telerik:RadEditor> 


plz help.

6 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 27 Oct 2008, 01:04 PM
Hello Vinamra,

With the exception of not using a toolsfile, since I don't know what tools you put to include, I used your code below and the Image Manager works fine. 

Would you be able to post what is in your toolsfile as well as the other code on the page? 
0
Serrin
Top achievements
Rank 1
answered on 27 Oct 2008, 01:04 PM
::double posted::
0
vinamra
Top achievements
Rank 1
answered on 27 Oct 2008, 05:52 PM
the problem persist woth and without tools file,

 my tool file content is

<root> 
    <tools name="InsertToolbar"  enabled="true" > 
        <tool name="AjaxSpellCheck"/> 
        <tool name="ImageManager" shortcut="CTRL+M"/> 
        <tool name="ImageMapDialog"/> 
        <tool separator="true"/> 
        <tool name="FlashManager" /> 
        <tool name="MediaManager" /> 
        <tool separator="true"/> 
        <tool name="DocumentManager" /> 
        <tool name="TemplateManager" /> 
        <tool separator="true"/> 
        <tool name="InsertTable" />      
    <tool name="Help" /> 
    </tools> 
 
    <tools enabled="true" > 
        <tool name="Undo" /> 
        <tool name="Redo" /> 
        <tool separator="true"/> 
        <tool name="Cut" /> 
        <tool name="Copy" /> 
        <tool name="Paste" shortcut="CTRL+!"/> 
        <tool separator="true"/> 
        <tool name="PasteFromWord" /> 
        <tool name="PasteFromWordNoFontsNoSizes" /> 
        <tool name="PastePlainText" /> 
        <tool name="PasteAsHtml"  /> 
        <tool separator="true"/> 
        <tool name="Print" /> 
        <tool name="FindAndReplace" /> 
        <tool name="SelectAll" />        
    </tools> 
 
    <tools enabled="true" > 
        <tool name="Bold" /> 
        <tool name="Italic" /> 
        <tool name="Underline" /> 
        <tool name="StrikeThrough" /> 
        <tool separator="true"/> 
        <tool name="JustifyLeft" /> 
        <tool name="JustifyCenter" /> 
        <tool name="JustifyRight" /> 
        <tool name="JustifyFull" /> 
        <tool name="JustifyNone" /> 
 
        <tool separator="true"/> 
        <tool name="Superscript" /> 
        <tool name="Subscript" /> 
 
        <tool separator="true"/> 
        <tool name="ConvertToLower" /> 
        <tool name="ConvertToUpper" /> 
         
        <tool name="Indent" /> 
        <tool name="Outdent" /> 
        <tool name="InsertOrderedList" /> 
        <tool name="InsertUnorderedList"/> 
 
        <tool name="AbsolutePosition" /> 
        <tool name="LinkManager" /> 
        <tool name="Unlink" /> 
    <tool name="ToggleTableBorder" /> 
    <tool name="ToggleScreenMode" /> 
    </tools> 
 
    <tools name="DropdownToolbar"  > 
        <tool name="ForeColor" /> 
        <tool name="BackColor"/> 
        <tool separator="true"/> 
        <tool name="FontName"/> 
        <tool name="FontSize"/> 
        <tool name="RealFontSize"/> 
        <tool name="InsertCustomLink"/> 
        <tool name="FormatBlock"/> 
     
    </tools> 
</root> 

0
Serrin
Top achievements
Rank 1
answered on 27 Oct 2008, 06:39 PM
Well... since the toolsfile doesn't change anything, how about the rest of the aspx?  :)
0
vinamra
Top achievements
Rank 1
answered on 27 Oct 2008, 06:48 PM
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddNews.ascx.cs" Inherits="Admin_Controls_AddNews" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %> 
<style type="text/css"
    table.adminform 
    { 
        background-color: #f9f9f9; 
        border: solid 1px #d5d5d5; 
        width: 750; 
    } 
    .style3 
    { 
        width: 80px; 
        height: 42px; 
    } 
    .style4 
    { 
        height: 42px; 
    } 
    .style5 
    { 
        width: 80px; 
    } 
    .style6 
    { 
        width: 338px; 
    } 
    .style7 
    { 
        width: 69px; 
    } 
    .style8 
    { 
        width: 258px; 
    } 
    </style> 
 
<table class="adminform" style="width: 765px" > 
    <tr> 
        <td class="style5" > 
            <asp:Label ID="Label4" runat="server" Text="Title/Heading"></asp:Label> 
        </td> 
        <td class="style6"
            <asp:TextBox ID="TextBoxTitle" runat="server" Text='' Width="258px"></asp:TextBox> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  
                ControlToValidate="TextBoxTitle" ErrorMessage="Title/Heading Required"></asp:RequiredFieldValidator> 
        </td> 
        <td class="style7"
            <label> 
                Published 
            </label> 
        </td> 
        <td class="style8"
            <asp:CheckBox ID="CheckBoxActive" runat="server" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="style5" > 
            <asp:Label ID="Label12" runat="server" Text="Small Description"></asp:Label> 
        </td> 
        <td class="style6"
            <asp:TextBox ID="TextBoxSmallDesc" runat="server" Height="70px" TextMode="MultiLine" 
                Width="258px"></asp:TextBox> 
        </td> 
        <td class="style7"
            <asp:Label ID="Label10" runat="server" Text="Meta Description"></asp:Label> 
        </td> 
        <td class="style8"
            <asp:TextBox ID="TextBox6" runat="server" Text='' Height="70px" TextMode="MultiLine" 
                Width="258px"></asp:TextBox> 
        </td> 
    </tr> 
    <tr> 
        <td class="style5" > 
            <asp:Label ID="Label9" runat="server" Text="Meta Keywords"></asp:Label> 
        </td> 
        <td class="style6"
            <asp:TextBox ID="TextBoxMetaKeyword" runat="server" Text='' Width="258px"></asp:TextBox> 
        </td> 
        <td class="style7"
            <asp:Label ID="Label11" runat="server" Text="Category"></asp:Label> 
        </td> 
        <td class="style8"
             
                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" > 
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString1 %>" 
                         
    SelectCommand="SELECT [Id], [Name], [ParentId] FROM [Category]"></asp:SqlDataSource> 
                    <telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Telerik"  
                        DataTextField="Name" DataValueField="Id"
                         
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        
                    </telerik:RadComboBox> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  
                        ControlToValidate="RadComboBox1" ErrorMessage="Catagory Required"></asp:RequiredFieldValidator> 
                </telerik:RadAjaxPanel> 
                 
             
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
                Width="75px"
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' 
                    style="border: 0px;" /> 
            </telerik:RadAjaxLoadingPanel> 
        </td> 
    </tr> 
    <tr> 
        <td valign="top" class="style3" > 
            <asp:Label ID="Label8" runat="server" Text="Featured Image"></asp:Label> 
        </td> 
        <td valign="top" colspan="3" class="style4"
            <telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.jpeg,.bmp,.gif" 
                ControlObjectsVisibility="None" Culture="English (India)" MaxFileInputsCount="1" 
                Skin="Telerik" TargetFolder="~/Images/FeaturedImages"  
                OnFileExists="RadUpload1_FileExists" Width="197px" Height="53px"
            </telerik:RadUpload> 
             
            <asp:CustomValidator ID="Customvalidator1" runat="server" Display="Static" ClientValidationFunction="validateRadUpload1" 
                OnServerValidate="Customvalidator1_ServerValidate" ErrorMessage="Invalid extensions.Use Only Jpg,Gif,Png,Bmp Images."
            </asp:CustomValidator> 
             
        </td> 
             
    </tr> 
</table> 
<br /> 
<table class="adminform"
    <tr> 
        <td valign="top"
            <asp:Label ID="Label5" runat="server" Text="Content"></asp:Label> 
        </td> 
        <td> 
            <telerik:RadEditor ID="RadEditor1" runat="server" AllowScripts="True" Skin="Telerik" 
                Height="474px" Width="658px" ToolsFile="Controls/SomeTools.xml" > 
                <Content> 
                </Content> 
                <ImageManager UploadPaths="~/Images/" ViewPaths="~/Images/"  
                    DeletePaths="~/Images/"   EnableImageEditor ="true" /> 
                 
                 
            </telerik:RadEditor> 
            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Value="hello"  
                BasePath="~/fckeditor/" ToolbarSet="Default" > 
            </FCKeditorV2:FCKeditor> 
         
        </td> 
    </tr> 
    <tr> 
        <td align="left"
            <asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" /> 
            &nbsp; 
        </td> 
         
    </tr> 
</table> 
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Telerik" /> 
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
 
<script type="text/javascript"
 
    function nodeClicked(sender, args) { 
        var comboBox = $find('<%= RadComboBox1.ClientID %>'); 
        var node = args.get_node() 
 
 
        comboBox.set_text(node.get_text()); 
        comboBox.Value = node.Value; 
 
 
        comboBox.hideDropDown(); 
         
    } 
</script> 
 
<script type="text/javascript"
    function validateRadUpload1(source, arguments) { 
        arguments.IsValid = getRadUpload('<%= RadUpload1.ClientID %>').validateExtensions(); 
    } 
</script> 
 
</telerik:RadScriptBlock> 
 
 

0
Rumen
Telerik team
answered on 28 Oct 2008, 07:28 AM
Hi Vinamra,

The highlighted properties below

<ImageManager UploadPaths="~/Images/" ViewPaths="~/Images/" DeletePaths="~/Images/"  />

should enable the upload in the ~/Images folder placed in the root of your web application.

We are not sure what could be the problem - so our suggestion is to open a support ticket and to send us a fully runnable project to test.


Looking forward to hearing from you soon,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
vinamra
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
vinamra
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or