ValueChanged event fired many Times

8 posts, 0 answers
  1. Aicha
    Aicha avatar
    4 posts
    Member since:
    Jan 2013

    Posted 23 Jan 2013 Link to this post

    Hello,

    I use RadNumericUpDown for a list of qcm and users can put their score for each question.
    and I faced the following problem   :
     
     the ValueChanged event is fired many Times !!

    can you help me a bout that please  ?

    thanks aicha
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 28 Jan 2013 Link to this post

    Hello Aicha,

    We were able to reproduce the issue only while debugging.

    The event is triggered only once when you change the value in the control via typing in the textbox or clicking the arrows. But when you place a breakpoint in the event it is hit multiple times. This is a common issue in some events which causes the breakpoints to be hit multiple times and at the same time behave as expected when not in debug mode. This issue may be caused by the focus getting reset to the control or another related scenario.

    I would recommend to you to debug this and any other events in which you experience this issue with for example Debug.WriteLine() method without explicitly placing breakpoints in the event.

    Hope this information is helpful.

    Kind regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 06 Feb 2014 in reply to Aicha Link to this post

    Confirm too.
  5. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 06 Feb 2014 in reply to Aicha Link to this post

    confirm too

    http://www.telerik.com/forums/radnumericupdown---why-bug
  6. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 06 Feb 2014 in reply to Aicha Link to this post

    May be you have biding twoway+codebehind logic update.
    set biding ot OneTime mode
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 10 Feb 2014 Link to this post

    Hi,

    As previously mentioned the event is correctly triggered only once if there is not break points inside the event handler. This is a common issue with some events which rely on the focus in order to be triggered and when there is a break point inside them the focus is moved and may cause multiple unexpected triggers.

    I recorded a short video showing how the event is triggered only once when clicking the Up or down arrows.

    Regards,
    Vladi
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  8. Rob Ainscough
    Rob Ainscough avatar
    172 posts
    Member since:
    Jan 2010

    Posted 03 Aug 2015 Link to this post

    I can confirm the problem still exists in 2015 Q1.  Has this issue been fixed in 2015 Q2 release or are you saying there is NO fix?

    Debugging is an important part of the development process, so it's not acceptable to suggest a developer NOT place a breakpoint in event code.

     Cheers, Rob.

  9. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 05 Aug 2015 Link to this post

    Hi Rob,

    Thank you for contacting us.

    As this thread is a bit old could you give us some additional details about the exact scenario in which you experience the multiple ValueChanged event hits. This will help us make sure we are investigating the correct scenario and possibly provide a solution of any related issues.

    Looking forward to your response.

    Regards,
    Vladi
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner