RadTextBox Very Large Amount of Text Hangs Browser

2 posts, 0 answers
  1. Josh
    Josh avatar
    3 posts
    Member since:
    Jul 2008

    Posted 30 Apr 2009 Link to this post

    While using a RadTextBox, if a user has a very large amount to text, the text box hags the browser and maxes out the processor.

    Example:
    http://demos.telerik.com/aspnet-ajax/input/examples/common/orderform/defaultcs.aspx

    Copy and Paste text from this file:

    http://www.microsoftboy.com/downloads/HugeText.zip


    Expanded File Size: 222 KB (228,152 bytes)
    218, 183 characters with spaces.
    7,201 lines
    10, 753 words.


    Skin Setting:
    <telerik:RadTextBox runat="server" Skin="Office2007" Width="400px"
                    FocusedStyle-BackColor="#e0f4f6">
    </telerik:RadTextBox>

    Definition:
    <telerik:RadTextBox Width="600px" Height="450px" runat="server" ID="txtFormatTemplateContent"
    ReadOnly="False" TextMode="multiLine" Text='<%# Bind("xslContent") %>' style="position: relative" ></telerik:RadTextBox></td>
                                               

    ******************************
    //Added asp.net textbox to see if it had any performance issues and it did not.
    <asp:TextBox BackColor="green" ID="txtFormatTemplateContent2"   Width="600px" Height="450px" runat="server" ReadOnly="false" TextMode="multiLine"
                                                style="position: relative" Text='<%# Bind("xslContent") %>'></asp:TextBox>
    *******************************

  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 04 May 2009 Link to this post

    Hi Josh,

    Generally it is not recommended to use the RadTextBox with such amounts of text as it was not designed for that purpose. I can suggest you to use the RadEditor as an alternative which was built to handle such scenarios.

    Kind regards,
    Pavel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top