This is a migrated thread and some comments may be shown as answers.
RadTextBox Focus Style Width Not Working
4 Answers 63 Views
This is a migrated thread and some comments may be shown as answers.
dotnetrockerzzz
Top achievements
Rank 2
dotnetrockerzzz asked on 29 Jul 2011, 01:09 PM
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

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 01 Aug 2011, 06:24 AM
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.
0
dotnetrockerzzz
Top achievements
Rank 2
answered on 29 Sep 2011, 02:11 PM
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 
0
Accepted
Princy
Top achievements
Rank 1
answered on 30 Sep 2011, 10:19 AM
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.
0
dotnetrockerzzz
Top achievements
Rank 2
answered on 30 Sep 2011, 10:58 AM
!important always helps..
thanks a lot it worked.. but still telerik needs to work upon that 'small' patch of functionality of theirs..
Tags
Input
Asked by
dotnetrockerzzz
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
dotnetrockerzzz
Top achievements
Rank 2
Share this question
or