Re: CuteEditor_OnInitialized(editor) doesn't work when ajax call back in the tab panel

  •  03-26-2010, 2:07 AM

    Re: CuteEditor_OnInitialized(editor) doesn't work when ajax call back in the tab panel

    Hi wolf11th,
     
    Please download the latest version and tes the example below. This issue have been fixed in version 6.6.
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>   
    4. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head runat="server">   
    8.     <title>example</title>   
    9. </head>   
    10. <body>   
    11.     <form id="form1" runat="server">   
    12.     <div>   
    13.         <asp:ScriptManager ID="ScriptManager1" runat="server">   
    14.         </asp:ScriptManager>   
    15.         <asp:UpdatePanel ID="UpdatePanel1" runat="server">   
    16.             <ContentTemplate>   
    17.                 <asp:Button ID="Button1" runat="server" Text="Do PostBack" />   
    18.                 <cc1:TabContainer ID="TabContainer1" runat="server">   
    19.                     <cc1:TabPanel runat="server" HeaderText="Surveyors Section" ID="TabPanel1" Height="100%">   
    20.                         <HeaderTemplate>   
    21.                             <div>   
    22.                                 tab1</div>   
    23.                         </HeaderTemplate>   
    24.                         <ContentTemplate>   
    25.                             tab1 text   
    26.                         </ContentTemplate>   
    27.                     </cc1:TabPanel>   
    28.                     <cc1:TabPanel runat="server" HeaderText="Surveyors Section" ID="TabPanelSurveyor">   
    29.                         <HeaderTemplate>   
    30.                             tab2   
    31.                         </HeaderTemplate>   
    32.                         <ContentTemplate>   
    33.                             <div id="divSurveyor" style="overflow: auto;">   
    34.                                 <CE:Editor ID="Editor1" runat="server" Height="400" ShowPreviewMode="False" ResizeMode="None">   
    35.                                 </CE:Editor>   
    36.                             </div>   
    37.                         </ContentTemplate>   
    38.                     </cc1:TabPanel>   
    39.                 </cc1:TabContainer>   
    40.             </ContentTemplate>   
    41.         </asp:UpdatePanel>   
    42.     </div>   
    43.     </form>   
    44. </body>   
    45. </html>   
    46.   
    47. <script>   
    48. function CuteEditor_OnInitialized(editor)   
    49. {   
    50.   editor.SetHeight("1000");   
    51. }   
    52. </script>  
    Regards,
     
    ken
View Complete Thread