RadNumericTextBox HorizontalAlign not work

3 posts, 1 answers
  1. z
    z avatar
    2 posts
    Member since:
    Feb 2011

    Posted 18 Oct 2011 Link to this post

    Hi everybody:
      below is my code
    <telerik:RadNumericTextBox ID="rmtxtPayment" runat="server" Type="Currency"
      MaxLength="10" ReadOnly="True">
      <ReadOnlyStyle HorizontalAlign="Right" />
      <EnabledStyle HorizontalAlign="Right" />
    </telerik:RadNumericTextBox>
    In IE8 firefox7 chrome14 display properly, but the content can not be right-aligned IE9.
    I use telerik.Web.UI, v.2011.1.519.40
    Thank you for your help!
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Oct 2011 Link to this post

    Hello,

    I also faced the same issue in IE9. Try setting the CSS class as shown below which worked as expected.

    aspx:
    <telerik:RadNumericTextBox ID="rmtxtPayment" runat="server" CssClass="MyClass" Type="Currency" MaxLength="10" ReadOnly="true" >
    </telerik:RadNumericTextBox>

    CSS:
    <style type="text/css">
     .MyClass
     {
     text-align:right;
     }
    </style>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. z
    z avatar
    2 posts
    Member since:
    Feb 2011

    Posted 18 Oct 2011 Link to this post

    It's work. Thank you for your help
Back to Top