RadNumericTextBox blinking on Tab press

5 posts, 0 answers
  1. Sam
    Sam avatar
    11 posts
    Member since:
    Jan 2010

    Posted 29 Apr 2010 Link to this post

    I have 7 radnumerictextboxes and all using OnvalueChanged client event where it calculates the total amount when value changed
    the problem is when I hit the tab (keyboard) button to go to the next textbox the cursor  inside the textbox start blinks very fast and prevent me from entering number; 


    <telerik:RadNumericTextBox ID="txtPositionApprovedY1" Runat="server" Width="50px"   
                                            Skin="Sunset" DataType="System.Int32" EmptyMessage="----" > 
                                              <DisabledStyle BackColor="#EEEEEE" /> 
                                         <ClientEvents OnValueChanged="PositionApprovedChanged" /> 
                                              <EnabledStyle HorizontalAlign="Center" /> 
                                            <NumberFormat DecimalDigits="0" /> 
                                        </telerik:RadNumericTextBox> 


    function PositionApprovedChanged(sender, args) {  
        var txtTotalApproved = $("div #divComplement [id$='txtTotalApproved']")[0].control;  
        var totalApproved = null;  
     
        for (var index = 1; index <= 7; index++) {  
            var txtPositionApproved = $("div #divComplement [id$='txtPositionApprovedY" + index + "']")[0].control  
            totalApproved += ConvertStringToInt(txtPositionApproved.get_value());  
        }  
        if (totalApproved == 0) {  
            totalApproved = null;  
        }  
        txtTotalApproved.set_value(totalApproved);  
     
  2. Sam
    Sam avatar
    11 posts
    Member since:
    Jan 2010

    Posted 30 Apr 2010 Link to this post

    Where are you guys we really need help on this issue; Thanks
  3. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 04 May 2010 Link to this post

    Hi Sam,

    I cannot reproduce this scenario. Attaching a  test page. Can you modify it and let us know how we can reproduce what you are getting?

    Best wishes,
    Veli
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Sam
    Sam avatar
    11 posts
    Member since:
    Jan 2010

    Posted 12 May 2010 Link to this post

    I am using Telerik.web.UI version 2009.3.1103.35  I can fix the problem by setting the RadNumericTextBox attribute SelectionOnFocus to None. the default is All
  5. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 13 May 2010 Link to this post

    Hello Sam,

    The default value of the SelectionOnFocus property is None for each RadInput control. This means the input will behave like a standard asp:TextBox control when focused and will not try to adjust the selection or cursor position.

    Regards,
    Veli
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top