RadTextBox Focus Style Width Not Working

5 posts, 1 answers
  1. dotnetrockerzzz
    dotnetrockerzzz avatar
    32 posts
    Member since:
    Aug 2010

    Posted 29 Jul 2011 Link to this post

    RadTextBox Focus Style Width Not Working:--

    <telerik:RadTextBox ID="tbspost" runat="server">
                        <FocusedStyle Font-Size="Large" Width="400px"/>
                         </telerik:RadTextBox>

    When we bring textbox to focus the width does not change to 400pixels , however the Font-size property appears to work properly ..
    Help
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Aug 2011 Link to this post

    Hello Vaibhav,

    I tried the same scenario and it is working as expected in my end. 2011,1,315,35 is the version in which I tested. Here I am pasting the full code that I tried.
    aspx:
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
      <telerik:RadTextBox ID="tbspost" runat="server">
         <FocusedStyle Font-Size="Large" Width="400px"/>
      </telerik:RadTextBox>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. dotnetrockerzzz
    dotnetrockerzzz avatar
    32 posts
    Member since:
    Aug 2010

    Posted 29 Sep 2011 Link to this post

    Respected Princy,
    It does not seem to be working ..
    My telerik version -- 2011,1,315,40 
    What I want - whenever we click inside the textbox, the width of the textbox should increase but it does not happen so 
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 30 Sep 2011 Link to this post

    Hello Vaibhav,

    Try setting the FocusedStyle-CssClass to set the FocusStyle Width
    aspx:
    <telerik:RadTextBox ID="tbspost" runat="server" FocusedStyle-CssClass="myclass">
    CSS:
    <style type="text/css">
    .myclass
    {
      width:200px !important;
    }
    </style>

    Thanks,
    Princy.
  6. dotnetrockerzzz
    dotnetrockerzzz avatar
    32 posts
    Member since:
    Aug 2010

    Posted 30 Sep 2011 Link to this post

    !important always helps..
    thanks a lot it worked.. but still telerik needs to work upon that 'small' patch of functionality of theirs..
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017