Expandable MultiLine TextBox

5 posts, 0 answers
  1. Gabriel Beauchamp
    Gabriel Beauchamp avatar
    41 posts
    Member since:
    Jan 2008

    Posted 02 Jul 2008 Link to this post

    It would be really cool if the MultiLine TextBox had the ability to automatically expand as the user types in some text.

    Just a suggestion for future releases.

  2. Plamen Peshev
    Plamen Peshev avatar
    885 posts

    Posted 03 Jul 2008 Link to this post

    Hello Gabriel,

    Thank you for the great feature request! Unfortunately this behavior is not available out of the box. We have logged this into our system and our RadInput developers will do their best to implement it.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 19 Jul 2008 Link to this post

    Hi Gabriel

    I needed this functionality so I built it myself using javascript:

    var txtTo = $find("<%= txtTo.ClientID %>").TextBoxElement;

    var numberOfRows;

    //Do some calculations to set rows

    txtTo.rows = numberOfRows;


  4. Daniel
    Daniel avatar
    22 posts
    Member since:
    Jan 2008

    Posted 26 Aug 2008 Link to this post

    I was doing this, but I just upgraded to the latest release and now TextBoxElement is not a valid property?

    My code was this:
         function CommentsChange(sender,args) { 
            sender.TextBoxElement.rows =Math.floor(sender.TextBoxElement.value.length/sender.TextBoxElement.cols) +1; 

    It no longer works...and using getelement() and setting the rows doesn't work.

  5. Yavor
    Yavor avatar
    11 posts

    Posted 27 Aug 2008 Link to this post

    Hello Daniel,

    The api for the asp.net version of the control is slightly different than the standard one. Review the suggested methods and let me know if further questions arise.

    Sincerely yours,
    the Telerik team

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