Sitefinity ASP.NET CMS
Skip Navigation LinksSupport / 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

About Telerik

Telerik, the publisher of Sitefinity CMS, is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting and .NET ORMTFSCode Analysis and Web Application Testing tools. Building on its solid expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Created with passion, Telerik products help thousands of developers every day to be more productive and deliver reliable applications under budget and on time. Read more about Telerik

Copyright © 2002-2010 Telerik. All rights reserved. Powered by Sitefinity