This is a migrated thread and some comments may be shown as answers.
Client Resizing of TextBox
3 Answers 108 Views
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 11 Feb 2011, 09:30 PM
Hello,

Is there anything in-built that allows a user to resize a RadTextBox to the size of their liking?  Or is there a way to make that work?  Something that gives the user the ability to select the border of the textbox, and click and drag to resize?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 14 Feb 2011, 10:20 AM
Hello Brian,

This is not supported by RadTextBox. The only option I can offer you is to use the textbox in multiline mode (if applicable) to accomodate long text strings and make them directly visible to the end user.

Kind regards,
Sebastian
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Dev
Top achievements
Rank 1
answered on 08 Apr 2011, 12:48 PM
CSS3 does come with this functionality built in, and Firefox 4, as well as WebKit, set 'resize: both;' as the default for textarea elements.  Unfortunately there seems to be something in RadTextBox which actively inteferes with this behaviour - resetting the size of the textarea with JavaScript based on some sort of interval.  Is there a way for me to stop the RadTextBox resizing itself after the user has expanded the textarea?

If not it would seem like a sensible move for Telerik to add 'resize: none;' to the default CSS for RadTextBox textareas.

Rob
0
Galin
Telerik team
answered on 11 Apr 2011, 11:14 AM
Hello Rob,

In version 2011 Q1 the "resize:none" css rule is added to the default CSS for RadTextBox textarea, so now the textbox is not resizable by default due to valid reasons. However, in RadInputManager we keep the resizable attribute for the browsers which support it, as it is a User Agent feature.

If the "resize:both;" is enabled, you can limit the resizing size with "max-height" and "max-width" CSS attributes.

Kind regards,
Galin,
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
Brian Mains
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Dev
Top achievements
Rank 1
Galin
Telerik team
Share this question
or