Telerik

Knowledge Base

Home/Web Content Management/Developer Network/Knowledge Base/Editing Image Gallery causes IE7 Crash

Editing Image Gallery causes IE7 Crash

Problem:

IE 7 crashes when one edits the Image Gallery Control.

Solution:

The problem is related to the way IE7 parses the rendered HTML by PagingSetting server controls in the ImageGalleryControlDesigner template and there are two options to avoid it.

You should make the designer template external (you can find all external templates and their mapping configuration in the download section in your Client.net account):

1. In the ~/App_Data/Configuration/Telerik.Sitefinity.Configuration.ControlsConfig.xml add the following template mapping:

<?xml version="1.0" encoding="utf-8"?>        
<controlsConfig>        
  <viewMap>        
    <viewSettings hostType="Telerik.Libraries.WebControls.Design.ImageGalleryDesigner"      
 
    layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Libraries/ImageGalleryControlDesigner.ascx" />        
  </viewMap>        
</controlsConfig>        


layoutTemplatePath is the path where you store the external template. Generally you can add it to  ~/Sitefinity/Admin/ControlTemplates/Libraries/ImageGalleryControlDesigner.ascx

Open the ~/Sitefinity/Admin/ControlTemplates/Libraries/ImageGalleryControlDesigner.ascx for edit and find the first instance of PagingSetting control:

<sf:PresentationModeSettings ID="ModeSettings1" runat="server">        
    <DetailHeaderTemplate>        
    ...        
 
        <sf:PagingSetting id="pagingSetting" AllowPagingSetting="true" DefaultPageCount="10" AllowPaging="true" runat="server" /> 

Approach 1:

Remove the instance of the control from the template

Approach 2:

Duplicated the PagingSetting control:

<sf:PagingSetting id="pagingSetting" AllowPagingSetting="true" DefaultPageCount="10" AllowPaging="true" runat="server" />        
<sf:PagingSetting id="pagingSetting1" AllowPagingSetting="true" DefaultPageCount="10" AllowPaging="true" runat="server" /> 

The templates and ControlsConfig file are attached for your convenience. Let us know if there is anything else that we can do for you.

Article Info

Article relates to 3.6
Created by Georgi and Radoslav
Last modified by Georgi Chokov
Related categories: Problems/errors

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.