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

How to get RadTextBox height and scrollHeight

1 Answer 123 Views
Input
This is a migrated thread and some comments may be shown as answers.
James Daresta
Top achievements
Rank 1
James Daresta asked on 02 Jun 2010, 09:02 PM
So I can do some dynamic resizing of the textbox I want to get the height and scroll height for the method below. I cannot seem to do this with the RadTexBox. Thanks in advance.

     function Master_ResizeTextBox(sender, eventArgs) {  
         if (sender.scrollHeight > parseInt(sender.style.height.replace(/px/gi, ''))) {  
             sender.style.height = sender.scrollHeight + 'px';  
         }  
 
     } 

1 Answer, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 08 Jun 2010, 11:03 AM
Hi James,

You can get the RadTextBox HTML element using the get_element() client-side method and then try getting the desired values.
Find more information on RadTextBox client-side API here.

Greetings,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Input
Asked by
James Daresta
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or