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.

    Thanks,
  2. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 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,
    Plamen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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;

    Regards
    Axe

  5. Daniel
    Daniel avatar
    21 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.

    HELP!
  6. Yavor
    Admin
    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,
    Yavor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017