slow performance typing in RadTextBox

39 posts, 0 answers
  1. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 18 Jul 2011 Link to this post

    Hi,

    With the latest version of the controls (2011.2.712.40) I am experiencing a rather unusably slow typing response in one of my RadTextBoxes.  It is a multiline textbox, wtih a maxlength setting.  I am trying to get a test case together as this is a definite issue since changing from the Q1 2011 version of the controls, but it seems to only happen in very particular circumstances. 

    Before I burn a lot of time trying to get a test case, has anyone else seen this issue?

    Thanks.

    Craig
  2. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 19 Jul 2011 Link to this post

    By using the JS profiler in IE8 I have determined that the problem is with the _calculateSelection function called by get_caretPosition in the _onTextBoxKeyPressHandler event handler (reported as line 7175).  This call takes 99.71% of all the processing time, with an average of 348ms.  1/3rd of second delay per keystroke is definitely going to cause problems!

    Using version 2011.1.519.40 of the Telerik assemblies, the get_caretPosition function does not appear to be called, and the _onTextBoxKeyPressHandler event handler only consumes 3% of the processing time.

    Can someone from Telerik please comment/look at this?

    Thanks,

    Craig

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 19 Jul 2011 Link to this post

    Telerik,

    We are experiencing the same issue with the latest version and
    are about to release our project.
     
    We need a solution ASAP!

    Regards,

    ~Dean

  5. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 19 Jul 2011 Link to this post

    Hi Dean,

    Can you put a test case together to show the problem?  I am having difficulty as it is a problem in a fairly complex project and I cannot yet isolate it.  Maybe we have some similarities?  Let me know if you are using any of these:

    .Net 4
    Master Pages
    RadTabStrip and RadMultiPage loading usercontrols
    RadWindow
    Multiple levels of usercontrols
    RadFormDecorator
    RadStyleSheetManager
    RadCompression

    Craig
  6. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 19 Jul 2011 Link to this post

    Hi Craig,

    Simular.  We are using the following.

    .Net 4
    Master Pages
    RadTabStrip (load on-demand) and RadMultiPage loading usercontrols RadWindow
    Multiple levels of usercontrols

    Also...
    Everything is Ajaxified.  RadAjaxManager and Proxy's on UserControls.

    Building a test case would be very tricky for us also - very complex large project.  But...  We did create a seperate page and placed just a RadTextBox Multiline and had NO issues.

    ~Dean


  7. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 19 Jul 2011 Link to this post

    Also...
    Everything is Ajaxified.  RadAjaxManager and Proxy's on UserControls.

    Yes, we are using the same here, so it seems we have very similar projects.  I am going to start adding some more to my test case to see if I can recreate it.  So far I have the RadTabStrip and RadMultiPage loading a usercontrol with a RadWindow that contains the RadTextBox, but there are no problems yet.

    Craig
  8. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 19 Jul 2011 Link to this post

    It wasn't clear to me but...  You are loading your tabs on-demand?
    ~Dean
  9. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 19 Jul 2011 Link to this post

    Not as it's defined I think.  I'm loading when Page.IsPostback = false, not on the tab click.
  10. Abdurrahman Battal
    Abdurrahman Battal avatar
    20 posts
    Member since:
    Nov 2008

    Posted 20 Jul 2011 Link to this post

    We are also having the same problem. Looks like a previous Telerik bug has been resurrected! This issue was fixed before and now it is back.. Hope someone returns with a solution ASAP.
  11. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 20 Jul 2011 Link to this post

    Hi Abdurrahman,

    Was there a workaround for this bug when it appeared previously?

    Craig
  12. Abdurrahman Battal
    Abdurrahman Battal avatar
    20 posts
    Member since:
    Nov 2008

    Posted 20 Jul 2011 Link to this post

    Yes, we reverted to an earlier version of Telerik at that time; and after a while Telerik guys published a new version or patch (I do not remember exactly).

    Other then that; go back to version 2011.1.519, removing version 712...

    Still got no response from any Telerik guys.
  13. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 20 Jul 2011 Link to this post

    Unfortunately that version has another bug around RadMultiPage that I need fixed so I can't use it either.
  14. Abdurrahman Battal
    Abdurrahman Battal avatar
    20 posts
    Member since:
    Nov 2008

    Posted 20 Jul 2011 Link to this post

    Then we should all pray for getting a patch for this from Telerik ASAP... Someone from them should be reading these posts...

    Just a suggestion, you might try to override the cpu consuming javascript function; although it might also cause other problems.. We were lucky enough to be able to roll back the whole system to the earlier version. It caused a major problem with client though!
  15. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 20 Jul 2011 Link to this post

    I have opened a support ticket (Ticket ID: 445433) on this issue - no response yet.

    This issue is also causing a problem within their RadScheduler default popup add dialog - it contains a RadTextBox.

    For now we have reverted all RadTextBoxes back to ASP TextBoxes which resolves the issue but still leaves us with the RadScheduler problem.

    Reverting back is an option but we haven't done it yet - waiting on Teleriks response.

    ~Dean

  16. Martin
    Admin
    Martin avatar
    811 posts

    Posted 20 Jul 2011 Link to this post

    Hello Guys,

    I have tried to reproduce the described issue locally, but without success. Have anyone managed to isolate the problem in a sample page or could you provide some more details about how to replicate it?

    Looking forward to your reply.

    Greetings,
    Martin
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  17. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 20 Jul 2011 Link to this post

    Hi Martin,

    I haven't yet managed to emulate it in a simple test case, no.  I'll let you know if I do.

    Craig
  18. Abdurrahman Battal
    Abdurrahman Battal avatar
    20 posts
    Member since:
    Nov 2008

    Posted 20 Jul 2011 Link to this post

    Just to let you know; hoping that it might help; this exact same problem did show up in one of the releases of late 2009 or early 2010. It was fixed then; but now came back...
  19. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 20 Jul 2011 Link to this post

    I have just discovered that the issue goes away if compatibility view is switched on IE8. 

    This is not feasible for us, but it might be useful to you other guys.

    Craig
  20. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 20 Jul 2011 Link to this post

    I just added some videos to the support ticket for you Telerik.

    We have run all browsers and get various results.

    IE8 - Issue
    IE8 (compat. mode) - Issue but not as big a hesitation between characters
    IE9 (standard) - Issue
    IE9 (compat. mode) - Issue but not as big a hesitation between characters

    Chrome 12.0.742.122 - NO Issue
    FireFox 5 - NO Issue
    Opera 11.50 - NO Issue
    Safari 5.0.5 - NO Issue

    If Telerik is willing to sign an NDA we can give you access to the code & DB via VPN - as last resort.

    We have tried several different ways to reproduce this issue outside of the current project structure without success.

    Regards,
    ~Dean

  21. Marco
    Marco avatar
    25 posts
    Member since:
    Oct 2010

    Posted 21 Jul 2011 Link to this post

    Hello all,

    I have the same problem since the new version.

    I'm hoping on a quick fix.

    Regards Marco
  22. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 21 Jul 2011 Link to this post

    Hi Marco,

    Are you able to create a reproducable test case for the Telerik guys?

    Craig
  23. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 21 Jul 2011 Link to this post

    Hi Martin,

    I have a test case for you that reproduces the problem.  It is actually very simple.

    Create a form with the following controls on it:

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />    
    <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" />
    <telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="MultiLine" />

    When typing in the RadTextBox, the response will be very slow.  If you remove the TextMode attribute from the RadTextBox, there is no problem.

    It may be that controls other than the RadDateTimePicker also cause this effect, but it is definitely noticable with the RadDateTimePicker there.

    Craig
  24. Martin
    Admin
    Martin avatar
    811 posts

    Posted 21 Jul 2011 Link to this post

    Hello Craig,

    Thank you for the code snippet.

    I was able to reproduce the issue locally and confirm that RadTextBox does not behave as expected in this scenario under IE8 only. Strangely enough the problem disappears if the text box is declared before the picker in the markup. I have forwarded your report to our developers for further investigation. Unfortunately, I can not provide you with exact estimate about when the problem will be fixed. However, you can follow the status of the issue in our public issue tracking system.

    Greetings,
    Martin
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  25. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 21 Jul 2011 Link to this post

    This is not a IE8 only issue.  We can reproduce the error in IE9.

    Correction...  We cannot reproduce Craig's test in IE9 but the problem still happens.

    We are building off Craig's test scenario to see if another RadControl produces the issue.

    Great job Craig!
  26. Martin
    Admin
    Martin avatar
    811 posts

    Posted 21 Jul 2011 Link to this post

    Hello Dean,

    I have not said that this IE8 related issue. My point was that the code Craig has provided, causes the problem in IE8 only. One more time - I confirm that we have a problem with our RadTextBox control and as I stated in my previous post - I have created a backlog item for it. However, since your project is based on a different scenario that breaks in IE9 as well, I assume it might be a different issue. That is why I suggested that we continue our communication here so that all different scenarios that might cause the problem are available to our community. This way many members can contribute with sample code and test pages which would definitely speed up the process of isolating and fixing the issue.

    Best wishes,
    Martin
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  27. Marco
    Marco avatar
    25 posts
    Member since:
    Oct 2010

    Posted 22 Jul 2011 Link to this post

    Dear Martin,

    This is my example, hopes it helps
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
    </telerik:RadDateTimePicker>
    <br />
    <telerik:RadTextBox ID="tbTitle" runat="server" Height="200px" TextMode="MultiLine"
        Width="500px">
    </telerik:RadTextBox>

    Browser is IE8, Telerik Q2 2011

    Beste regards Marco
  28. Michael Malone
    Michael Malone avatar
    68 posts
    Member since:
    May 2010

    Posted 22 Jul 2011 Link to this post

    I am also experiencing the same problem with IE9. I was not able to reproduce the problem with the isolated case but in my project, RadTextBox is very, very slow.

    MasterPages
    Custom Composite Controls
    Embedded Resources with Custom Controls including Style Sheets
    PadPanels
    RadTextBoxs
    RadTimePickers
    RadScriptManager
  29. Martin
    Admin
    Martin avatar
    811 posts

    Posted 25 Jul 2011 Link to this post

    Hello Guys,

    I would like to inform you that our developers implemented a fix for that issue in our latest internal build. Please log in to your accounts and give a try to the 2011.2.725 version of the controls. Let me know whether the problem still exists.

    Best wishes,
    Martin
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  30. Marco
    Marco avatar
    25 posts
    Member since:
    Oct 2010

    Posted 25 Jul 2011 Link to this post

    Dear Martin,

    The Issue is FIXED!

    SUPER!

    Thanks to you all.

    Regards Marco
  31. Michael Malone
    Michael Malone avatar
    68 posts
    Member since:
    May 2010

    Posted 26 Jul 2011 Link to this post

    This "hotfix" has fixed my issue. Thank you.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017