CE doesn't work in updatepanel?

Last post 03-22-2010, 10:12 PM by wolf11th. 6 replies.
Sort Posts: Previous Next
  •  03-22-2010, 6:49 PM 59576

    CE doesn't work in updatepanel?

    I add a CE in the update panel. I can load the page without any problem at the first time. However, if any ajax call back triggered, it will report a run time js error: Ox8fe.SetSelectedIndex(0x0) 

    I have exactly the same problem as the following
    http://cutesoft.net/forums/thread/54551.aspx
     
    pls help
     
  •  03-22-2010, 7:23 PM 59578 in reply to 59576

    Re: CE doesn't work in updatepanel?

    I've just investigated the problem a bit further more. I use tabcontainer which is an ajax control toolkit. If the editor is not in the tabpanel which is already open (shown) and I don't ever click on the tabpanel which has the editor, I just click on save button which to call a ajax post, and then it will report the js error.
    however, if I ever click on the tabpanel which has the editor or make this tabpanel as the default opened tab, I will not get the js error.
     
    I think the problem is, somehow, the editor is not fully initialised if the tabpanel is invisible.
    Therefore, is that any way to fully load the editor evenif it's in a invisible tabpanel which can be shown by js?
     
    thx
  •  03-22-2010, 7:35 PM 59579 in reply to 59576

    Re: CE doesn't work in updatepanel?

    I use v6.4 in vs2008 vb.net
    I can easily reproduce the error. Is it a bug of CE? This is the key for us to decide whether go with CE or not. Please help
     

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test3.aspx.vb" Inherits="Test3" %>

    <%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">

    <title></title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

     

    <asp:ScriptManager ID="ScriptManager1" runat="server">

    </asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>

    <asp:Button ID="Button1" runat="server" Text="Button" />

    <cc1:TabContainer ID="TabContainer1" runat="server">

    <cc1:TabPanel runat="server" HeaderText="Surveyors Section" ID="TabPanel1"

    Height="100%">

    <HeaderTemplate>

    <div>

    123</div>

    </HeaderTemplate>

    <ContentTemplate>

    <div id="div1" style="overflow: auto;">

    asdfsdaf

    </div>

    </ContentTemplate>

    </cc1:TabPanel>

    <cc1:TabPanel runat="server" HeaderText="Surveyors Section" ID="TabPanelSurveyor"

    Height="100%">

    <HeaderTemplate>

    <div>

    Surveyors Section</div>

    </HeaderTemplate>

    <ContentTemplate>

    <div id="divSurveyor" style="overflow: auto;">

    <CE:Editor ID="Editor1" runat="server" ShowCodeViewToolBar="False" ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/MyTool.config"

    Height="100%" Width="100%" ShowPreviewMode="False" ResizeMode="None">

    </CE:Editor>

    </div>

    </ContentTemplate>

    </cc1:TabPanel>

    </cc1:TabContainer>

    </ContentTemplate>

     

    </asp:UpdatePanel>

     

    </div>

    </form>

    </body>

    </html>

     
     
    ------------------------------
     

    Partial Class Test3

    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim aa As String = ""

    End Sub

    End Class

     
  •  03-22-2010, 9:21 PM 59583 in reply to 59579

    Re: CE doesn't work in updatepanel?

    Hi wolf11th,
     
    I think you using an old version. We have fixed this issue in the latest version. Please download the latest version and try again.
     
    Download:
     
     
    Regards,
     
    ken
  •  03-22-2010, 9:32 PM 59585 in reply to 59583

    Re: CE doesn't work in updatepanel?

    thx Kenneth for your quick reply
    btw, how can I use the new one? Is it enough if I just replace the dll? I have done quite a lot of customisations. I don't want to change the cutesoft_client folder. thx
     
  •  03-22-2010, 9:43 PM 59586 in reply to 59585

    Re: CE doesn't work in updatepanel?

    js error: window.CuteEditorImplementation(editor)
    seems like the editor object is missing from the page
     
    I just replace the CuteEditor.dll, CuteEditor.ImageEditor.dll and NetSpell.SpellChecker.dll in my bin folder. Is there anything else I need to do?
     
    thx
     
  •  03-22-2010, 10:12 PM 59587 in reply to 59586

    Re: CE doesn't work in updatepanel?

    It seems like you have to replace the CuteSoft_Client as well.
    After replacing the CuteSoft_Client, and the CuteEditor.dll in bin, I reload this component from vs2008 and now it works fine.
     
    Thx CE team. Your effort is really appreciated. Such good support is really what I need. I will suggest my boss to buy your product ASAP.
View as RSS news feed in XML