This is a migrated thread and some comments may be shown as answers.

Expandable MultiLine TextBox

4 Answers 131 Views
Input
This is a migrated thread and some comments may be shown as answers.
Gabriel Beauchamp
Top achievements
Rank 2
Gabriel Beauchamp asked on 03 Jul 2008, 03:52 AM
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,

4 Answers, 1 is accepted

Sort by
0
Missing User
answered on 03 Jul 2008, 01:00 PM
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
0
Axe
Top achievements
Rank 1
answered on 19 Jul 2008, 11:33 AM
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

0
Daniel
Top achievements
Rank 1
answered on 26 Aug 2008, 09:58 PM
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!
0
Yavor
Telerik team
answered on 27 Aug 2008, 05:12 AM
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.
Tags
Input
Asked by
Gabriel Beauchamp
Top achievements
Rank 2
Answers by
Missing User
Axe
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or