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

RadNumericTextBox alignment

2 Answers 139 Views
Input
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 10 Mar 2008, 07:50 PM
I'm using a series of RadNumericTextBox controls in a RadGrid GridTemplateColumn's EditItemTemplate. Even if I set the HorizontalAlign to Right, the value still appears aligned to the left of the box. Is there a way to force the values to appear on the right side of the box on entry?

Here's the markup of my control:

<telerik:RadNumericTextBox ID="FooEdit" runat="server" Type="Number" Width="70px" MinValue="0" > 
     <EnabledStyle HorizontalAlign="Right" /> 
     <NumberFormat DecimalDigits="0" /> 
</telerik:RadNumericTextBox> 

2 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 10 Mar 2008, 10:53 PM
Let me clarify, the data appears to the right when editing.
0
Thomas
Top achievements
Rank 1
answered on 10 Mar 2008, 11:08 PM
I believe I have found the solution. The situation was that I had a page with some top-level controls and a grid below. I also had a RadAjaxManager on the page where many of controls triggered a refresh of the grid. However, I did not have an entry for the grid to refresh itself. In other words something like:

<telerik:AjaxSetting AjaxControlID="MyGrid">
    <UpdatedControls>
       <telerik:AjaxUpdatedControl ControlID="MyGrid" />
    </UpdatedControls>
</telerik:AjaxSetting>

Once I added that, the javascript that properly triggered the proper display of the RadNumericTextBox data (i.e. adhered to HorizontalAlign="Right") fired and displayed correctly.
Tags
Input
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or