Textchanged

10 posts, 0 answers
  1. OPL
    OPL avatar
    25 posts
    Member since:
    Jul 2010

    Posted 04 Feb 2011 Link to this post

    Hi,

    I've 2 radnumerictextbox ( A & B )  in a row in grid.
    Each one have dictinct textchanged event functions (FunctionA & FunctionB)

    When i modify B, FunctionB is fired. FunctionB modify the value of A.
    If i modify again B, functionA is fired instead of FunctionB.

    Is there a way to cancel this event after modification in code behind ?

    Thanks

    OPL
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Feb 2011 Link to this post

    Hello,


    If you do not want to fire "OnTextChanged" event, then set the AutoPostBack property of RadNumericTextBox to "false".



    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. OPL
    OPL avatar
    25 posts
    Member since:
    Jul 2010

    Posted 07 Feb 2011 Link to this post

    Hi Shinu,

    I need to keep "ontextchanged" and autopostback to true.

    I try this :

    Function A_textChanged(ByVal sender As Object, ByVal e As EventArgs)
        RemoveHandler B.TextChanged, AddressOf B_TextChanged
        .....
        B.value = "test"
        ......
        AddHandler B.TextChanged, AddressOf B_TextChanged
    End Function

    but it don't work.

    Thks for help.

    OPL
  5. OPL
    OPL avatar
    25 posts
    Member since:
    Jul 2010

    Posted 09 Feb 2011 Link to this post

    Anybody ?
  6. Martin
    Admin
    Martin avatar
    811 posts

    Posted 10 Feb 2011 Link to this post

    Hello OPL,

    Could you please try to change the RadNumericTextBox controls with standard asp TextBox controls and verify whether the same behavior is expected? Let me know about what your findings are.

    Kind regards,
    Martin
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  7. OPL
    OPL avatar
    25 posts
    Member since:
    Jul 2010

    Posted 10 Feb 2011 Link to this post

    Hi Martin,

    I've tried with standard ASP textbox without reproducing the problem.

    Any idea ?

    I also have a problem when i press enter key, the function attached to Ontextchanged is fired two times (i'm a in radgrid)

    Thanks
  8. OPL
    OPL avatar
    25 posts
    Member since:
    Jul 2010

    Posted 11 Feb 2011 Link to this post

    Hi Martin,

    I think my trouble happen when i put a data which have a different format than describe for the radnumerictextbox.
    For example :

    radnumerictextbox RTBA with option NumberFormat-DecimalDigits="2"
    RTBA.value = "5.897867"
    if i focus on RTBA and leave it without changing value, the "ontextchanged" is anyway fired.

    I modifie in code behind for format data instead of radnumerictextbox and it's ok

    I still have trouble when i press enter on my textbox after chage value. The event "ontextchanged" is fired two times

    Thanks for helping me, it's quite hurry

    OPL
  9. Martin
    Admin
    Martin avatar
    811 posts

    Posted 11 Feb 2011 Link to this post

    Hello OPL,

    With regard to:

    "For example :

    radnumerictextbox RTBA with option NumberFormat-DecimalDigits="2"
    RTBA.value = "5.897867"
    if i focus on RTBA and leave it without changing value, the "ontextchanged" is anyway fired.
    "


    I am afraid that this is a limitation of the control that is observed on initial load only. The only available workaround currently is to set NumberFormat-KeepNotRoundedValue="true" of your RadNuemricTextBox.

    As to:

    "I still have trouble when i press enter on my textbox after chage value. The event "ontextchanged" is fired two times"

    Indeed the reported behavior is observed for RadNumericTextBox even when the controls are outside of a grid. The strange thing is that although it looks like the event is fired twice, the value of the text box is changed only once. Anyway, I have forwarded your report to our developers for further investigation. Unfortunately, I can not provide you with exact estimate about when the problem will/can be fixed. However, you can follow the status of the issue in our public issue tracking system.

    Regards,
    Martin
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  10. RichJ
    RichJ avatar
    83 posts
    Member since:
    Aug 2006

    Posted 19 May 2012 Link to this post

    Was this ever fixed?  I'm having the same issue with the latest version...

    Damn annoying.
  11. Martin
    Admin
    Martin avatar
    811 posts

    Posted 23 May 2012 Link to this post

    Hello VaticNZ,

    The first problem (TextChanged fired on Focus-Blur without changing the value) is resolved in the Q2 2012 release (expected in the beginning of June). To verify that the control works as expected in your scenario, you can try the BETA version of the Q2 release. It should be available for download later today or tomorrow.

    The second problem is already resolved.

    I hope this helps.

    Kind regards,
    Martin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017