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

Change event not triggered when value cleared manually

1 Answer 1178 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 30 Jul 2015, 12:42 PM
Hi I have this issue for a while and all my attempts to resolve it haven't worked out.

It can be demonstrated here: http://dojo.telerik.com/aKaVI

If you have a clear button the clears the value in the numeric textbox then upon entering the old value in the numeric textbox doesn't trigger the change event.

Steps to reproduce:

a) Add the value 5 in numeric textbox and observe the change event
b) Press clear button
c) Add the value 5 in numeric textbox and notice the change event is NOT triggered.

Do you have a solution for this?

As you can see I have tried editing the _old and the _value but it didn't help.

Thanks

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 03 Aug 2015, 05:44 AM
Hello Darren,

The behavior that you are describing is made that way by design and in order for the change event to fire, the input element should be focused and blurred. Another option is to manually trigger the change event:
//_numeric.element.focus();
//_numeric.element.blur();
_numeric.trigger('change');

You could also take a look at the following forum thread, where the same question is discussed:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
NumericTextBox
Asked by
Darren
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or