This is a migrated thread and some comments may be shown as answers.

RadNumericTextBox HorizontalAlign not work

2 Answers 145 Views
Input
This is a migrated thread and some comments may be shown as answers.
z
Top achievements
Rank 1
z asked on 18 Oct 2011, 09:33 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 18 Oct 2011, 10:25 AM
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.
0
z
Top achievements
Rank 1
answered on 19 Oct 2011, 02:10 AM
It's work. Thank you for your help
Tags
Input
Asked by
z
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
z
Top achievements
Rank 1
Share this question
or