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

RadEditor inside updatepanel and Wizard - error at first time

1 Answer 60 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gideon
Top achievements
Rank 1
Gideon asked on 03 Oct 2010, 06:07 PM
Hello,

The following bug occurs only in the first time ever you enter the rad editor. In order to reproduce it, you need to clear the internet temporary files in the browser and then enter the page.

The bug is simple: Create a wizard. Put the editor in the second step of a wizard and put the wizard inside UpdatePanel. When you click next to move from the first step to the second step (where the editor is), the editor width becomes huge and the tool buttons are spread all over it.
If you try do it again without clearing the temporary files cache, the editor is fine.

Any ideas to solve it will be appreciated (I'm using 2010 SP1).

The code:
<%@ Page Language="VB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  
<script runat="server">
</script>
  
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
  <asp:ScriptManager ID="ScriptManager1" runat="server" />
  <asp:UpdatePanel runat="server">
   <ContentTemplate>
    <asp:Wizard runat="server" ID="w" DisplaySideBar="False" DisplayCancelButton="True" >
        <WizardSteps>
            <asp:WizardStep Title="Step 1" ID="WizardStep1" runat="server">
                    step 1
            </asp:WizardStep>
            <asp:WizardStep Title="Step 2" ID="WizardStep2" runat="server">
                    step 2
                    <telerik:radeditor runat="server">
                        <Content>
                            Sample Content 
                        </Content>
                    </telerik:radeditor>
            </asp:WizardStep>
            <asp:WizardStep Title="Step 3" ID="WizardStep3" runat="server">
                    step 3
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
   </ContentTemplate>
  </asp:UpdatePanel>
</form>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Oct 2010, 08:59 AM
Hello Gideon,

I was able to fix the reported problem by registering the external skins of RadEditor, e.g.

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
</script>
 
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <link href="Skins/Editor.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Default/Editor.Default.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Window.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Default/Window.Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
  <asp:ScriptManager ID="ScriptManager1" runat="server" />
 
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
    <asp:Wizard runat="server" ID="w" DisplaySideBar="False" DisplayCancelButton="True" >
        <WizardSteps>
            <asp:WizardStep Title="Step 1" ID="WizardStep1" runat="server">
                    step 1
            </asp:WizardStep>
            <asp:WizardStep Title="Step 2" ID="WizardStep2" runat="server">
                    step 2
                    <telerik:radeditor EnableEmbeddedSkins="false" ID="Radeditor1" runat="server">
                        <Content>
                            Sample Content
                        </Content>
                    </telerik:radeditor>
            </asp:WizardStep>
            <asp:WizardStep Title="Step 3" ID="WizardStep3" runat="server">
                    step 3
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
   </ContentTemplate>
  </asp:UpdatePanel>
</form>
</body>
</html>


Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Gideon
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or