View Full Version : Disable check event

23 Jun 2010, 5:33 AM
Hi all.

I have a checkbox. Now i've attached an 'check' event to it, which does something when the user checks or unchecks the checkbox. All good so far.

However, when the checkbox is changed from the code with the 'setValue' method, the event must NOT fire.

How can i accomplish this? Can i check in the event that 'setValue' triggered the event instead of the user?

23 Jun 2010, 7:03 AM
You can suspendEvents() and resumeEvents() in the method you are calling the setValue()

23 Jun 2010, 10:55 PM
Thank you so much! :D Worked like a charm!