RadTextBox: TextMode=Multiline, MaxLength property

16 posts, 0 answers
  1. Robert LeGood
    Robert LeGood avatar
    28 posts
    Member since:
    Dec 2007

    Posted 27 Feb 2008 Link to this post

    Hey all,

    When I put a RadTextBox into MultiLine mode, it seems to ignore the value that I've put in the MaxLength field, if I paste text into a box.  (Typing one character at a time retains the MaxLength restriction

    For example, in the following aspx page, if I type, I'm limited to 10 character.  If I cut and paste text, it ignores that limitation

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TetxareaLength.aspx.cs" Inherits="TetxareaLength" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!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>Untitled Page</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
        <div> 
            <asp:ScriptManager ID="ScriptManager1" runat="server"
            </asp:ScriptManager> 
         
        </div> 
            <br /> 
            <br /> 
            <telerik:RadTextBox ID="RadTextBox1" runat="server" Columns="120" MaxLength="10" 
                Rows="5" TextMode="MultiLine"
            </telerik:RadTextBox> 
        </form> 
    </body> 
    </html> 





  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 29 Feb 2008 Link to this post

    Hi Robert,

    Thank you for contacting us.

    It seems this is indeed a bug with our latest Prometheus version of the RadInput control in multi line mode. I have logged it in our bug-tracking system and our developers will fix it. As a token of gratitude for your feedback I have updated your Telerik points.

    Best wishes,
    Pavel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Eric Villemure
    Eric Villemure avatar
    19 posts
    Member since:
    Feb 2008

    Posted 30 May 2008 Link to this post

    Is that bug fixed.  Also when 10 characters are entered into the textbox, you cannot select the 10 characters and type to replace the selection, you can only press backspace and then enter some data.

    Thanks you
  4. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 02 Jun 2008 Link to this post

    Hello Eric,

    Unfortunately our developers didn't manage to fix this issue with the latest service pack. Hopefully we will see the problem resolved soon. As to your observation, it seems this is another issue that our developers will have to take care of. Please excuse us for any temporary inconvenience caused. I have updated your Telerik points.


    Sincerely yours,
    Pavel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Simon Parr
    Simon Parr avatar
    5 posts
    Member since:
    Jul 2012

    Posted 11 Jun 2008 Link to this post

    Hi

    Is there a timescale as to when this problem may be resolved?  Is there any kind of temporary work around for now?

    Thanks,

    Simon
  6. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 12 Jun 2008 Link to this post

    Hello Simon,

    Unfortunately we cannot say for sure when this problem will be fixed. It is a high priority for our developers, and hopefully we might see a resolution for the upcoming service pack of the controls which is scheduled for release next week (around the 19th of June).

    Regards,
    Pavel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Lyle Groome
    Lyle Groome avatar
    22 posts
    Member since:
    Dec 2005

    Posted 20 Jun 2008 Link to this post

    Can you squeeze in another fix for the Multiline RadTextBox? Not a big issue at all because the odds of it happening are slim. but...

    In addition to it not respecting MaxLength when you paste, it also does not hold on to your defined Width & Rows setting if the paste in text say without spaces in it.

    Lets say you have a RadtextBox with Columns="25" Rows="3"
    and then you paste in the text "RadtextBoxRadtextBoxRadtextBoxRadtextBoxRadtextBoxRadtextBoxRadtextBoxRadtextBox"

    The textbox goes bac to a single row height and is really really wide. I know that css supports breaking long words but I think that logic should be included within the control.

    <telerik:radtextbox Width="195px" id="RadTextBox2" runat="server" TextMode="MultiLine" Rows="3" MaxLength="25" Label="MultiLine: " EmptyMessage="type here" Skin="Vista"></telerik:radtextbox>

  8. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 23 Jun 2008 Link to this post

    Hi Lyle,

    You are right, and the problem can be observed if you use the Label property of the TextBox. I have logged the issue in our bug-tracking system. Your Telerik points have been updated.

    Best wishes,
    Pavel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. DonKitchen
    DonKitchen avatar
    104 posts
    Member since:
    Jul 2007

    Posted 31 Jul 2008 Link to this post

    This still even seems to be a problem with the Q2 2008 release of the AJAX controls.
  10. ZeccoIT
    ZeccoIT avatar
    2 posts
    Member since:
    Jan 2008

    Posted 31 Jul 2008 Link to this post

    I need a fix for cut and paste issue as well and have a custom textbox control that another developer created that we will use the meantime. Of course we would rather use the Telerik control instead of our custom control, so please post when this has been fixed. Thanks!
  11. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 05 Aug 2008 Link to this post

    Hi guys,

    Our developers have investigated the problem but it seems it is more complicated than they have thought initially. Currently we see no way to implement this fix. If any of you knows of a textbox control which supports such functionality, please let us know.

    Sincerely yours,
    Pavel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  12. DonKitchen
    DonKitchen avatar
    104 posts
    Member since:
    Jul 2007

    Posted 05 Aug 2008 Link to this post

    I guess one workaround is to use a regex validator with a regular expression that validates length.  It would have to allow any characters (spaces included) with a character count less than or equal to your max (say 2000).

    Can anybody whip up the regex for that?
  13. ZeccoIT
    ZeccoIT avatar
    2 posts
    Member since:
    Jan 2008

    Posted 05 Aug 2008 Link to this post

    Hi there,

    We have a textbox control that handles the cut and paste issue properly. One of our developers sent me some code that we'd like to share with you that might help address this. I'll forward the code to you. Please reply and let us know if it helps.
  14. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 07 Aug 2008 Link to this post

    Hello Nicholas,

    Our developers will look into the code. Thank you for your willingness to cooperate. Your Telerik points have been updated.

    Regards,
    Pavel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  15. Henrique Duarte
    Henrique Duarte avatar
    105 posts
    Member since:
    Oct 2003

    Posted 24 Aug 2008 Link to this post

    Hi telerik,

    I'm using the latest version and I still have problem setting maxlength to a multiline.

    Regards,

    Henrique
  16. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 26 Aug 2008 Link to this post

    Hi Henrique,

    Could you elaborate what is the problem you are experiencing? Aside from the issues outlined in this thread the feature should be working as expected.

    Best wishes,
    Pavel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top