The page flash when include cuteeditor after postback whatever in the updatepanel

Last post 08-01-2010, 11:18 PM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  07-27-2010, 2:11 AM 62729

    The page flash when include cuteeditor after postback whatever in the updatepanel

    I create a form that include the cuteeditor.
    When the page scroll down, all the postback action would make the page flash more than one time.
    When I replace AjaxControlToolkit.HTMLEditor as cuteeditor, the flash problem gone.
    How can I fix it?
    Filed under:
  •  07-27-2010, 3:13 AM 62730 in reply to 62729

    Re: The page flash when include cuteeditor after postback whatever in the updatepanel

    The cuteEditor would reload the toolbar when refresh the page each time. If I scroll down the page, the reload tool bar action would make the page flash. How can I get rid of this problem?
  •  07-27-2010, 8:15 PM 62757 in reply to 62730

    Re: The page flash when include cuteeditor after postback whatever in the updatepanel

    You can use AJAX support feature, please refer to example http://richtextbox.com/cs/Ajax-Support.aspx 
     
    Regards,
    Eric
  •  07-27-2010, 9:17 PM 62759 in reply to 62757

    Re: The page flash when include cuteeditor after postback whatever in the updatepanel

    I've check the example, still cannot find the solution.
    Here is my code structure
     
    <UpdatePanel>
       <FormView>
          ....
          <CuteEditor />
          <CuteEditor />
          <CuteEditor />
           .....
          <Button />
          ....
       </FormView>
    </UpdatePanel>
     
    <ModalPopupExtender />
    <Panel>
       <CuteEditor />
    </Panel>
     
    In my planning , when click the button, modal popup make the panel shown
    It works. but the background, (the updatepanel part), flash base on the no of cuteeditor in the updatepanel
    How can I get rid of it ?
    If use AsyncPostBackTrigger, I don't know  where to place and how to call it.
     
     
  •  08-01-2010, 11:18 PM 62906 in reply to 62759

    Re: The page flash when include cuteeditor after postback whatever in the updatepanel

    Hi surrounding,
     
    Please try the example below.
     
    If you still get this issue. Please create a simple page which can reproduce this issue and send it to Kenneth@CuteSoft.net. I will check it and get back to you as soon as possible.
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="AJAX" %>   
    5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6.   
    7.   
    8. <html xmlns="http://www.w3.org/1999/xhtml">   
    9. <head runat="server">   
    10.     <title>example</title>   
    11. </head>   
    12. <body>   
    13.     <form id="theForm" runat="server">   
    14.     <asp:ScriptManager ID="ScriptManager1" runat="server" />   
    15.        <asp:UpdatePanel ID="UpdatePanel2" runat="server">   
    16.         <ContentTemplate>   
    17.             <asp:Button ID="button1" runat="server" Text="PostBack" />   
    18.         </ContentTemplate>   
    19.     </asp:UpdatePanel>   
    20.     <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">   
    21.         <ContentTemplate>   
    22.             <CE:Editor ID="editor1" runat="server">   
    23.             </CE:Editor>   
    24.         </ContentTemplate>   
    25.     </asp:UpdatePanel>   
    26.     
    27.     </form>   
    28. </body>   
    29. </html>  
    Regards,
     
    Ken
View as RSS news feed in XML