RadNumericTextBox alignment

3 posts, 0 answers
  1. Thomas
    Thomas avatar
    143 posts
    Member since:
    Feb 2007

    Posted 10 Mar 2008 Link to this post

    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. Thomas
    Thomas avatar
    143 posts
    Member since:
    Feb 2007

    Posted 10 Mar 2008 Link to this post

    Let me clarify, the data appears to the right when editing.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Thomas
    Thomas avatar
    143 posts
    Member since:
    Feb 2007

    Posted 10 Mar 2008 Link to this post

    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.
Back to Top