Client Resizing of TextBox

4 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 11 Feb 2011 Link to this post

    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.
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 14 Feb 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rob
    Rob avatar
    43 posts
    Member since:
    Aug 2010

    Posted 08 Apr 2011 Link to this post

    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
  5. Galin
    Admin
    Galin avatar
    526 posts

    Posted 11 Apr 2011 Link to this post

    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
Back to Top