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

numerictextbox values to be right aligned

1 Answer 518 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 08 May 2014, 10:25 AM
Hi.
How to get the numerictextbox values to be right aligned?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 May 2014, 10:38 AM
Hi Ryann,

I guess you want to set the style of RadNumericTextBox, you can achieve it using CSS as shown below. Please try it and let me know if any concern.

ASPX:
<telerik:GridTemplateColumn>
    <ItemTemplate>
        <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" CssClass="RightAligned" Value="0.0">
        </telerik:RadNumericTextBox>
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadNumericTextBox ID="TotalAccountBalanceTextbox" runat="server" CssClass="RightAligned" Value="0.0" />
    </EditItemTemplate>
</telerik:GridTemplateColumn>

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

Thanks,
Shinu
Tags
Grid
Asked by
Ryann
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or