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

Problem with ImageManager when use a custom skin

8 Answers 152 Views
Editor
This is a migrated thread and some comments may be shown as answers.
DW Web Team Member
Top achievements
Rank 2
DW Web Team Member asked on 27 Jul 2009, 02:19 PM

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

8 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 27 Jul 2009, 02:55 PM
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.
0
DW Web Team Member
Top achievements
Rank 2
answered on 31 Jul 2009, 01:51 PM
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.
0
DW Web Team Member
Top achievements
Rank 2
answered on 31 Jul 2009, 05:28 PM
Hi again,
I got it fixed by downloading on of you hot fix for Q2 2009.
Thanks
0
Svetlina Anati
Telerik team
answered on 06 Aug 2009, 08:10 AM
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.
0
Felix
Top achievements
Rank 2
answered on 13 Oct 2009, 02:11 PM
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
0
Rumen
Telerik team
answered on 16 Oct 2009, 01:11 PM
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.
0
Ish Singh
Top achievements
Rank 1
answered on 24 Apr 2010, 07:45 PM
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
0
Rumen Jekov
Top achievements
Rank 1
answered on 24 Apr 2010, 09:20 PM
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



Tags
Editor
Asked by
DW Web Team Member
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
DW Web Team Member
Top achievements
Rank 2
Felix
Top achievements
Rank 2
Rumen
Telerik team
Ish Singh
Top achievements
Rank 1
Rumen Jekov
Top achievements
Rank 1
Share this question
or