Problem with ImageManager when use a custom skin

9 posts, 0 answers
  1. DW Web Team Member
    DW Web Team Member avatar
    43 posts
    Member since:
    Jun 2012

    Posted 27 Jul 2009 Link to this post


    Hi,

    I am using the custom skin for the RadEditor:
     

    <

     

    telerik:RadEditor ID="radEditor" runat="server"

     

     

    Skin="WWRDefault" EnableEmbeddedSkins="false"

     

     

    ToolbarMode="Default" Height="600px" Width="97%"

     

     

    Visible="false" CausesValidation="False"

     

     

    ToolsFile="~/DefaultRadEditorToolsFile.xml"

     

     

    MaxDocumentSize="2400000" MaxImageSize="20480"

     

     

    ImagesFilters="*.png,*.gif,*.jpg,*.jpeg"

     

     

    DocumentsFilters="*.pdf,*.xls" />

     


    When I select ImageManager I have the following exception:
    Telerik.Web.UI.RadTreeView with ID='tree' was unable to find embedded skin with name 'WWRDefault'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false. 

    Could you please let me know what I am missing?

    Thank you,
    Tatiana
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 27 Jul 2009 Link to this post

    Hi DW Web Team Member,

    As far as I can see form the message text, the problem comes from the skin of a RadTreeView which has ID tree. Would you please try to remove the editor just for the test and see whether if you have only the treeview you will reproduce the problem again? Please, also make sure that you have set EnableEmbeddedSkins to false for the RadTreeView with ID tree, too.

    Let us know whether the problem was in the treeview and whether disabling the embedded resources fixed it.

    Sincerely yours,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. DW Web Team Member
    DW Web Team Member avatar
    43 posts
    Member since:
    Jun 2012

    Posted 31 Jul 2009 Link to this post

    I do not have RadTreeView on my page. I have RadEditor. This error comes out when I clicked on ImageManager button. RadEditor has the EnableEmbeddedSkins property set to false.
  5. DW Web Team Member
    DW Web Team Member avatar
    43 posts
    Member since:
    Jun 2012

    Posted 31 Jul 2009 Link to this post

    Hi again,
    I got it fixed by downloading on of you hot fix for Q2 2009.
    Thanks
  6. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 06 Aug 2009 Link to this post

    Hello DW Web Team Member,

    I would like to apologize for my reply and to tell you and others who will read this thread that it turned out that this was a bug in the Q2 release which I was not aware of. The bug is in our code - the file explorer control used in the editor dialogs did not obey the EnableEmbeddedSkins property. We have fixed it and the fix will be included in the next RadControls service pack. If you do not wish to wait until then to upgrade your project, you will be able to get the fix from the  internal builds (http://www.telerik.com/account/latest-internal-builds.aspx). Make sure the version you get is bigger than 2009.2.710.

    Please accept our apologies for the inconvenience this has caused you.

    Best wishes,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Felix
    Felix avatar
    22 posts
    Member since:
    Apr 2008

    Posted 13 Oct 2009 Link to this post

    Hello,

    we've got a similar Problem. When clicking the ImageManager-Button in an RadEditor, then a RadWindow opens and shows the following exception:
    [...]
    Telerik.Web.UI.Dialogs.UserControlResources with ID='resourcesFileBrowser' was unable to find embedded skin with name 'ourCustomSkinName'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.
    [...]

    The ImageManager is opened with a DialogOpener.

    Not working Code: This produces an exception in our project:
    <telerik:dialogopener   
    runat="server"   
    id="DialogOpener1"  
    EnableEmbeddedSkins="false"   
    Skin="ourCustomSkinName"></telerik:dialogopener>  

    Working Code:
    When we change the Skin in the DialogOpener-Tag to a non-custom-skin (or just use no skin-definiton at all), then no exception occurs, the ImageManger shows up. But we don't see a customSkin of course:
    <telerik:dialogopener   
    runat="server"   
    id="DialogOpener1"  
    EnableEmbeddedSkins="false"   
    Skin="Default"></telerik:dialogopener>  

    We are using the Telerik.Web.UI.dll version 2009.2.826.35 .

    Any Ideas or help would be appreciated.
    Thank you, Felix
  8. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 16 Oct 2009 Link to this post

    Hello Felix,

    Can you please register the EnableEmbeddedSkins property as a parameter of the DialogDefinition of the image manager, e.g.

       DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters); 
        imageManager.ClientCallbackFunction = "ImageManagerFunction"; 
        imageManager.Width = Unit.Pixel(694); 
        imageManager.Height = Unit.Pixel(440); 
        imageManager.Parameters["EnableEmbeddedSkins"] = "false"; 

    This should fix the problem.

    If you still experience the problem even after adding this line, please open a support ticket and send a sample fully working project that demonstrates the error.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Ish Singh
    Ish Singh avatar
    1 posts
    Member since:
    Aug 2009

    Posted 24 Apr 2010 Link to this post

    Rumen,

    I think I have the same problem as any of the dialogs with RadEditor do not show the custom skin and want to try the suggestion you posted. Can you please explain where this code needs to go?

    Thanks,
    Ish
  10. Rumen Jekov
    Rumen Jekov avatar
    70 posts
    Member since:
    Apr 2004

    Posted 24 Apr 2010 Link to this post

    Hi,

    Please, see this KB article:

    Registering an external skin of RadEditor

    http://www.telerik.com/support/kb/aspnet-ajax/editor/register-external-skin-vista-radeditor.aspx

    It provides guidance how to set the DialogsCssFile  property and import the external css stylesheet in the editor's dialogs.

    Kind regards,
    Rumen



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